GlokTimer
Runs code after a given time interval. This is not a high precision timer, there is no guarantee about how soon after delay milliseconds, the action will be performed.
The timer is not started on creation. You must call start.
delay is measured in milliseconds, and stored as a Double for compatibility with javascript, which doesn't support the Long
type.
If repeating == false
, action is performed only once, and then the timer stops. Otherwise, action will be repeated every delay milliseconds until the timer is stopped.
Constructors
Properties
NOTE. Changing the delay of a started timer does NOT affect the time that it will next be fired. However, it will affect the delay for subsequent firings of repeating timers.
Changing a timer to repeating after it has already fired does NOT cause it to fire again; Call start again if required.