A timer class.
A class for measuring elapsed time.
Methods
Create and start a timer.
Methods
Timer objects have the following methods:
Read the timer.
This returns the elapsed time since the last reset (or the creation of the timer) as a datetime.timedelta object.
Return the timer readings in seconds.
The default return value is a rounded integer number of seconds. With rounded == False, a floating point value with granularity of 1 microsecond is returned.