demosys.timers.base.BaseTimer¶
-
demosys.timers.base.
BaseTimer
= <class 'demosys.timers.base.BaseTimer'>¶ The base class guiding the implementation of timers. All methods must be implemented.
Methods¶
-
BaseTimer.
start
()¶ Start the timer initially or resume after pause
Raises: NotImplementedError
-
BaseTimer.
stop
() → float¶ Stop the timer. Should only be called once when stopping the timer.
Returns: The time the timer was stopped Raises: NotImplementedError
-
BaseTimer.
pause
()¶ Pause the timer
Raises: NotImplementedError
-
BaseTimer.
toggle_pause
()¶ Toggle pause state
Raises: NotImplementedError
-
BaseTimer.
get_time
() → float¶ Get the current time in seconds
Returns: The current time in seconds Raises: NotImplementedError
-
BaseTimer.
set_time
(value: float)¶ Set the current time in seconds.
Parameters: value (float) – The new time Raises: NotImplementedError