Class Clock
Delegate used to calculate the time offset to apply in networkTime
Constructors
Name | Description |
this
(getNetTimeOffset)
|
Instantiate the clock.
|
Fields
Name | Type | Description |
ClockSyncInterval
|
const(core.time.Duration) | how often the clock should be synchronized with the network
|
Methods
Name | Description |
networkTime
()
|
|
start
(taskman)
|
Start periodically synchronizing this clock with the NTP source.
|
synchronize
()
|
Synchronize the clock with the network.
Public to allow unittests to manually force a clock sync.
|
utcTime
()
|
|