demosys.timers.rocket.Timer¶
-
demosys.timers.rocket.
Timer
¶ Basic rocket timer. Sets up rocket using values in
settings.ROCKET
. The current time is translated internally in rocket to row positions based on the configured rows per second (RPS).
Methods¶
-
Timer.
start
()¶ Start the timer
-
Timer.
stop
() → float¶ Stop the timer
Returns: The current time.
-
Timer.
pause
()¶ Pause the timer
-
Timer.
toggle_pause
()¶ Toggle pause mode
-
Timer.
get_time
() → float¶ Get the current time in seconds
Returns: The current time in seconds
-
Timer.
set_time
(value: float)¶ Set the current time jumping in the timeline.
Parameters: value (float) – The new time