new Timer()
Creates a Timer instance.
Members
-
static tick
-
Progresses the time of the timer.
Methods
-
getElapsed() → {Number}
-
Returns the elapsed time since the timer started.
Returns:
Number The elapsed time -
reset()
-
Resets the timer.
-
start()
-
Starts the timer.
-
stop()
-
Stops the timer.