Package lib :: Module timing
[hide private]
[frames] | no frames]

Module timing

source code

Module for various timing purposes.

Functions [hide private]
None or str
print_elapsed_time(time_delta, return_str=False)
Print the elapsed time value in day, hour, minute, and second format.
source code
 
print_time()
Print the current date and time.
source code
Variables [hide private]
  __package__ = 'lib'

Imports: asctime


Function Details [hide private]

print_elapsed_time(time_delta, return_str=False)

source code 

Print the elapsed time value in day, hour, minute, and second format.

Parameters:
  • time_delta (float) - The time value in seconds to format.
  • return_str (bool) - A flag which if True will cause the elapsed time string to be returned rather than printed.
Returns: None or str
The elapsed time string, if asked for.