Class: Timer

A timer

Static Methods


Timer Timer.new()

Properties


bool Enabled

Whether this Timer is enabled.

int RepetitionCount

How many times this timer should repeat, or -1 if it should repeat indefinitely.

Duration Interval

The interval between OnElapsed invocations.

Duration TimeLeft [readonly]

The time left before the timer elapses.

Duration LastElapsed [readonly]

A timestamp (time since epoch) of the last elapse.

Events


Timer.OnElapsed(delta: Duration)

Fired every elapse.