e15190.utilities.timer

Functions

pause([show])

Pause the timer.

reset()

Reset the timer.

start()

Start the timer.

stop([prefix, suffix, show])

Stop the timer.

Classes

VerboseTimer([auto_print])

e15190.utilities.timer.start()

Start the timer.

e15190.utilities.timer.pause(show=False)

Pause the timer.

Parameters

show – bool, optional Whether to print the elapsed time accummulated at the time of pausing.

e15190.utilities.timer.stop(prefix=None, suffix=None, show=True)

Stop the timer.

Parameters
  • prefix – str, optional Prefix to print before the elapsed time.

  • suffix – str, optional Suffix to print after the elapsed time.

  • show – bool, optional Whether to print the elapsed time.

Returns

Elapsed time in seconds.

Return type

float

e15190.utilities.timer.reset()

Reset the timer.