wnp.LoopTimer Class
A simple timer.
Constructor
wnp.LoopTimer
()
Item Index
Methods
Methods
getDeltaTime
()
Number
Gets the delta time since the last update.
Returns:
Number:
deltaTime Returns the delta time since the last update.
getElapsedTime
()
Number
Gets elapsedTime since the start.
Returns:
Number:
elapsedTime Returns the elpased time since the last update.
start
()
Starts the timer.
update
()
Updates delta time.