vispy.app.timer.
Timer
Bases: object
object
Timer used to schedule events in the future or on a repeating schedule
Time between events in seconds. The default is ‘auto’, which attempts to find the interval that matches the refresh rate of the current monitor. Currently this is simply 1/60.
The function to call.
Number of iterations. Can be -1 for infinite.
Whether to start the timer.
The application to attach the timer to.
app
The vispy Application instance on which this Timer is based.
connect
Alias for self.events.timeout.connect()
disconnect
Alias for self.events.timeout.disconnect()
elapsed
interval
native
The native timer on which this Timer is based.
running
start
Start the timer.
A timeout event will be generated every interval seconds. If interval is None, then self.interval will be used.
If iterations is specified, the timer will stop after emitting that number of events. If unspecified, then the previous value of self.iterations will be used. If the value is negative, then the timer will continue running until stop() is called.
If the timer is already running when this function is called, nothing happens (timer continues running as it did previously, without changing the interval, number of iterations, or emitting a timer start event).
stop
Stop the timer.