new Clock()
The observation clock that can be paused and resumed.
The individual categories get their time from the observation clock.
- Source:
Methods
getElapsedTime(now)
Returns the total time the observation clock has been running in milliseconds.
Parameters:
Name | Type | Description |
---|---|---|
now |
number | The time in milliseconds when the elapsed time was wanted. |
- Source:
isPaused()
Returns true if the observation clock is paused, otherwise false.
- Source:
pause(now)
Pauses the observation clock.
Parameters:
Name | Type | Description |
---|---|---|
now |
number | The time in milliseconds when the observation clock was paused. |
- Source:
resume(now)
Resumes the observation clock.
Parameters:
Name | Type | Description |
---|---|---|
now |
number | The time in milliseconds when the observation clock was resumed. |
- Source: