Constructor
new Timer(callback, duration, stageIndex)
constructor - description
Parameters:
Name | Type | Description |
---|---|---|
callback |
Timer~callback | The code to execute once the timer expires. |
duration |
type | The length of time to wait until the timer expires. |
stageIndex |
type | description |
Members
duration :number
Type:
- number
running :boolean
Type:
- boolean
stageIndex :number
Type:
- number
timeLeft :number
Type:
- number
timeStarted :Date
Type:
- Date
Methods
(static) load(ts, d, tl, stageIndex, cb) → {type}
Parameters:
Name | Type | Description |
---|---|---|
ts |
type | description |
d |
type | description |
tl |
type | description |
stageIndex |
type | description |
cb |
type | description |
Returns:
description
- Type
- type