A synchronizable clock.
- Source:
Members
-
(private, static) offset_ :number
-
The clock offset in milliseconds.
Type:
- number
- Source:
Methods
-
(static) now() → {number}
-
- Source:
Returns:
The current time in milliseconds.- Type
- number
-
(static) sync(timestamp)
-
Sync the clock.
Parameters:
Name Type Description timestamp
number A timestamp in milliseconds which should be the current time. - Source: