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