edifice.Timer¶
-
class
edifice.Timer(function)[source]¶ Bases:
objectA 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.