edifice.Timer¶
-
class
edifice.
Timer
(function)[source]¶ Bases:
object
A Timer for calling a function periodically.
The function passed in the constructor will be called every time_in_ms milliseconds after the Timer is started, until the Timer is stopped.
- Parameters
function (
Callable
[[],Any
]) – the function that will be called periodically
Methods
start
(time_in_ms)Starts the timer.
stop
()Stops the timer.