Skip to main content

Timer

Control the time precisely in your code, it contains several timing Methods.

Methods

new

const timer = Timer.new();

getTime

Timer.getTime(timer);

setTime

Timer.setTime(src, value);

destroy

Timer.destroy(timer);

pause

Timer.pause(timer);

resume

Timer.resume(timer);

reset

Timer.reset(timer);

isPlaying

Timer.isPlaying(timer);