Options - repeats, numberOfRepeats, fcn, interval
milliseconds elapsed toward the next action
milliseconds until the next action callback, if complete will return 0
Cancels the timer, preventing any further executions.
Removes a callback from the callback list to be fired after the interval is complete.
The callback to be removed from the callback list, to be fired after the interval is complete.
Adds a new callback to be fired after the interval is complete
The callback to be added to the callback list, to be fired after the interval is complete.
Pauses the timer, time will no longer increment towards the next call
Resets the timer so that it can be reused, and optionally reconfigure the timers interval.
Warning** you may need to call timer.start()
again if the timer had completed
If specified, sets a new non-negative interval in milliseconds to refire the callback
If specified, sets a new non-negative upper limit to the number of time this timer executes
Resumes the timer, time will now increment towards the next call.
Starts the timer, if the timer was complete it will restart the timer and reset the elapsed time counter
Stops the timer and resets the elapsed time counter towards the next action invocation
Updates the timer after a certain number of milliseconds have elapsed. This is used internally by the engine.
Number of elapsed milliseconds since the last update.
The Excalibur timer hooks into the internal timer and fires callbacks, after a certain interval, optionally repeating.