Clock
Defined in: radiance/src/core/Clock.ts:2
Time between frames, for an animation loop: getDelta() is the seconds since the last call.
Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new Clock():
Clock
Returns
Section titled “Returns”Clock
Properties
Section titled “Properties”elapsed
Section titled “elapsed”elapsed:
number=0
Defined in: radiance/src/core/Clock.ts:5
Seconds since start(), or since the first getDelta().
Methods
Section titled “Methods”getDelta()
Section titled “getDelta()”getDelta():
number
Defined in: radiance/src/core/Clock.ts:12
Returns
Section titled “Returns”number
start()
Section titled “start()”start():
void
Defined in: radiance/src/core/Clock.ts:7
Returns
Section titled “Returns”void