Timeout
Parameters | Type | Description | Default Value |
---|---|---|---|
timeMS | number |
The time in ms of the delay before it can be started. | 1000 |
Attributes
Attributes | Description |
---|---|
time |
The time in ms of the delay before it can be started. |
active |
Indicates whether the timeout is active or not. |
timeElapsed |
Holds the time elapsed since start() up to timeMS in milliseconds. |
timeLeft |
The remaining time in milliseconds before the timeout completes. |
updateTime |
The interval in milliseconds for updating timeElapsed and timeLeft . |
currentTime |
The timestamp when the timeout was started. |
Methods
start()
The start() method is responsible for starting the timeout (setting active to true for the time specified).
Example
Before Clicking


