Timer deprecated
class Timer
deprecated
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.
at line 81
float|null
getDuration()
Returns the time (in seconds) the timer ran.
Returns null if no time has been recorded.