BSFL  0.1.0
Bash Shell Function Library
 All Files Functions Variables Groups
Functions
Time

Functions

 elapsed (start, stop)
 Displays the time elapsed between the 'start' and 'stop' parameters. More...
 
 now ()
 Displays the current timestamp. More...
 
 start_watch ()
 Starts the watch.
 
 stop_watch ()
 Stops the watch and displays the time elapsed. More...
 

Detailed Description

Function Documentation

elapsed ( start  ,
stop   
)

Displays the time elapsed between the 'start' and 'stop' parameters.

Parameters
startStart timestamp.
stopStop timestamp.
Returns
Time elapsed between the 'start' and 'stop' parameters.
now ( )

Displays the current timestamp.

Returns
Current timestamp.
stop_watch ( )

Stops the watch and displays the time elapsed.

Return values
0if succeed.
1if the watch has not been started.
Returns
Time elapsed since the watch has been started.