Class Clock

Delegate used to calculate the time offset to apply in networkTime

class Clock ;

Constructors

NameDescription
this (getNetTimeOffset) Instantiate the clock.

Fields

NameTypeDescription
ClockSyncInterval const(core.time.Duration)how often the clock should be synchronized with the network

Methods

NameDescription
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 ()