Timer#
- class maize.utilities.utilities.Timer[source]#
Bases:
objectTimer with start, pause, and stop functionality.
Examples
>>> t = Timer() ... t.start() ... do_something() ... t.pause() ... do_something_else() ... print(t.stop())
Methods
__init__()pause()Temporarily pause the timer.
start()Start the timer.
stop()Stop the timer and return the elapsed time in seconds.
Attributes
Returns the elapsed time.
Returns whether the timer is currently running.