Implements the Date object but using this clock to provide the correct time.
Clears a timer, as long as it was created using setImmediate.
Timer ID or object.
Clears a timer, as long as it was created using setInterval.
Timer ID or object.
Clears a timer, as long as it was created using setTimeout.
Timer ID or object.
Schedules the callback to be fired once 0 milliseconds have ticked by.
Callback to be fired.
Any extra arguments to pass to the callback.
Schedules a callback to be fired every time timeout milliseconds have ticked by.
Callback to be fired.
How many ticks to wait between callbacks.
Any extra arguments to pass to the callback.
Time identifier for cancellation.
Schedules a callback to be fired once timeout milliseconds have ticked by.
Callback to be fired.
How many ticks to wait to run the callback.
Any extra arguments to pass to the callback.
Time identifier for cancellation.
Global methods available to every clock and also as standalone methods (inside
timers
global object).