Class: Timer

core.Timer

Class representing a timer.

new core.Timer ()

Properties:
Name Type Description
interval number

(default: 0) The timeout interval in milliseconds.

repeat bool

(default: false) Whether the timer repeats itself.

running bool

(default: false) Whether the timer should be running.

Extends

Methods

start ()

Starts or restarts the timer.

stop ()

Stops the timer.

Events

core.Timer.event:timeout

Is triggered on timeout.