class Timer

deprecated 1.1

Timer class.

Methods

start()

Starts the timer.

stop()

Stops the timer.

bool
isRunning()

Returns true if the timer is currently running.

float|null
getDuration()

Returns the time (in seconds) the timer ran.

Details

at line 42
start()

Starts the timer.

at line 54
stop()

Stops the timer.

at line 69
bool isRunning()

Returns true if the timer is currently running.

Return Value

bool

at line 81
float|null getDuration()

Returns the time (in seconds) the timer ran.

Returns null if no time has been recorded.

Return Value

float|null