EventTimer

A class that controls delivering TimerEvent s on a regular basis.

Class Methods

new( interval, id ) → EventTimer

Will create a EventTimer object that controls sending TimerEvent s every interval milliseconds, having their id-field set to id - which is a number.

Instance Methods

stop → boolean

Will stop this EventTimer from posting more TimerEvent s.

Timer

Class Methods

delay( milliseconds ) → nil

Will do nothing for milliseconds milliseconds. It is not guaranteed to be exact and has different resolution on different platforms. Expect a resolution of 10 to 20 milliseconds at worst.

ticks → Number

Returns the time in milliseconds since RUDL was required.

TimerEvent

This event is posted regularly by an EventTimer object.

id → Number

This is the EventTimer's id.