Protected ReadonlyelapsedEvent that is triggered on each elapsed interval of the timer.
ProtectedindexIndex representing the number of times the timer has elapsed.
ProtectedintervalThe time interval between each execution of the timer.
Protected OptionallastIndicates whether the next timer event should be scheduled before triggering the current one.
Protected OptionalstartProtected OptionaltimeoutIdentifier of the currently scheduled timeout.
Gets an event that is triggered on each elapsed interval of the timer.
Gets the time interval of the timer.
Gets the number of times the timer has been invoked. This property reflects the total count of elapsed intervals, indicating how many times the timer's 'Elapsed' event has been triggered.
Gets a value indicating whether the timer is currently running.
Gets the date and time when the timer was last invoked.
Gets the date and time when the next timer event is scheduled to occur.
Gets the date and time when the timer was started.
Resets the index to zero.
Restarts the timer by stopping it, resetting the index, and then starting it again.
Stops the timer.
ProtectedtriggerTriggers the elapsed event and increments the index.
A promise that resolves with the current index.
Protected StaticscheduleSchedules the next timer event based on the timer's properties.
The timer instance.
Represents a timer that can be used to schedule recurring tasks with a specified time interval.