Timer Utility

A kind of a "stopwatch"

timer_util.getTimer()

Returns a Timer Object with methods

Name

Parameters

Type

Description

delay

Long

boolean

Returns true if the amount of milliseconds you specified has passed since the last reset

reset

None

void

Resets the timer

// will print "foo" every second (1000 ms)
var timer = timer_util.getTimer();
if(timer.delay(1000){
    print("foo")
    timer.reset();
}

Last updated