TimerObject
The TimerObject class provides an object-oriented helper for working with timers.
Methods
IsExpired()boolean
Checks if a timer has expired.
Returned:
- boolean - A boolean indicating whether the timer has expired.
Set(timeInS: number, realTime?: boolean)this
Sets a timer.
timeInSnumber - The time in seconds for the timer.realTimeboolean (optional) - A boolean indicating whether the timer is based on real time. Defaults to false.
Returned:
- this - This timer object.
Clear()this
Clears a timer.
Returned:
- this - This timer object.
constructor()
Creates a new TimerObject instance.