Timer
class Timer
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 37
start()
Starts the timer.
at line 49
stop()
Stops the timer.
at line 64
bool
isRunning()
Returns true if the timer is currently running.
at line 76
float|null
getDuration()
Returns the time (in seconds) the timer ran.
Returns null if no time has been recorded.