The amount of idle time, in seconds, between the firings of the timer.

Property of

Timer

Description

Set the enabled property to true to activate the Timer object. When the number of seconds of idle time specified in the interval property has passed, the timer’s onTimer event fires.

When the enabled property is set to false, the Timer stops counting time and the internal counter is reset. For example, suppose that

  1. The interval property is set to 10, and the enabled property is set to true.

If enabled is set to true again, the onTimer will fire after another 10 seconds has gone by, even though there was only 1 second left before the timer was disabled.

The interval property can only be set to a value of zero or greater. The interval property may be a fraction of a second; the resolution of the timer is one system clock tick, approximately 0.055 seconds. When interval is zero, the timer fires once per clock tick.

Setting the interval property always resets the internal counter to the newly specified time.