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.
Controls whether the elapsed event is invoked once immediately when Start or Restart is called.
When false (the default), the first invocation occurs after one full interval. When true, the first
invocation occurs immediately and is included in Invocations; subsequent invocations use the
configured interval. The ScheduleNextBeforeTrigger setting determines whether the next invocation
is scheduled before or after this immediate invocation finishes.
ProtectedisIndicates whether the timer has been started and has not been stopped.
Protected OptionallastControls whether the next invocation is scheduled before or after the current elapsed event finishes.
When false (the default), the timer waits for all synchronous and asynchronous elapsed handlers to
finish before scheduling the next invocation. The interval therefore begins after the handlers complete,
which prevents invocations from overlapping.
When true, the next invocation is scheduled before the elapsed handlers run. This keeps invocations
closer to the configured interval, but handlers can overlap if they take longer than the interval.
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.