Timer.delay property

The delay is the time between a Timer's creation and firing, or between subsequent firings.

Setting this property schedules a timer; this timer either will or will not repeat depending on what was most recently scheduled, or if the timer has never been scheduled, it will be a one-time timer.

Example

> timer2 = new Timer(() => console.log("Repeat fire!"));
undefined
> timer2.scheduleRepeat(0.1);
undefined
Repeat fire!
Repeat fire!
> timer2.delay
0.1
Repeat fire!
> timer2.delay = 2
undefined
Repeat fire!
> timer2.cancel()
undefined

References