Timer

class Timer[source]

Bases: object

A simple timer that calls a function at specified intervals.

Parameters:
intervalint

Interval between subsequent calls to this function, in milliseconds.

callbackCallable

The function to call.

singleshotbool, optional

If True, the timer is a singleshot timer. Default is False.

Methods

stop