cancels the timed, repeating action which was previously established by a call to setInterval().
ID of the interval to be cleared
Cancels a timeout previously established by calling setTimeout().
ID of the timeout to be cancelled
Return elapsed time in milliseconds since the last update
elapsed time
Return the current timestamp in milliseconds
since the game has started or since linux epoch (based on browser support for High Resolution Timer)
current time
Calls a function continously at the specified interval. See setTimeout to call function a single time.
the function to execute
the number of milliseconds (thousandths of a second) on how often to execute the function
Optionalpauseable: booleanrespects the pause state of the engine.
optional parameters which are passed through to the function specified by fn once the timer expires.
a numeric, non-zero value which identifies the timer created by the call to setInterval(), which can be used later with me.timer.clearInterval().
Calls a function once after a specified delay. See me.timer.setInterval to repeativly call a function.
the function you want to execute after delay milliseconds.
the number of milliseconds (thousandths of a second) that the function call should be delayed by.
Optionalpauseable: booleanrespects the pause state of the engine.
optional parameters which are passed through to the function specified by fn once the timer expires.
a positive integer value which identifies the timer created by the call to setTimeout(), which can be used later with me.timer.clearTimeout().
a Timer class to manage timing related function (FPS, Game Tick, Time...)
See
timer the default global timer instance