Gets the remaining time in milliseconds.
The remaining time in milliseconds.
Clears the current timeout and deactivates the timer.
Extends the timer by a specified number of milliseconds.
The number of milliseconds to extend the timer by.
Pauses the timer, retaining timer state for resumption.
Resumes the timer from a paused state.
Sets the timer to end at a specified time.
The time in milliseconds when the timer should end.
Updates the timer, setting a new timeout and emitting the "update" event.
Timer class that extends EventEmitter to provide timing functionality.