Calling scheduleRepeat()
queues the timer to be called back repeatedly after the specified delay. The callbacks will continue until the timer is unscheduled, or until the sun goes supernova and consumes the earth.
interval
interval
is the time until the timer fires for the first time, and the time between subsequent firings, in seconds (different than Javascript's setInterval()
, which uses milliseconds).None (undefined
).
> timer2 = new Timer"Repeat fire!";
undefined
> 0 1;
undefined
Repeat fire!
Repeat fire!
Repeat fire!
> timer2.delay
100
>
undefined
XPLMScheduleFlightLoop
to schedule the timer.run_at_interval()