Class PreciseClock
- Namespace
- Switchboard
- Assembly
- Switchboard.PreciseClock.dll
public static class PreciseClock
- Inheritance
-
PreciseClock
Properties
Now
public static DateTime Now { get; }
UtcNow
public static DateTime UtcNow { get; }
Methods
SynchronizeWithSystemClock()
Synchronizes the UtcNow and Now properties with the system clock. If the difference between the old time and the new time is less than one second, the time will not be changed.
public static void SynchronizeWithSystemClock()