Table of Contents

Class PreciseClock

Namespace
Switchboard
Assembly
Switchboard.PreciseClock.dll

Provides DateTime values that have the precision of a Stopwatch.

public static class PreciseClock
Inheritance
PreciseClock

Properties

Now

Gets the last synchronized Now value, plus the Elapsed time since synchronization.

public static DateTime Now { get; }

UtcNow

Gets the last synchronized UtcNow value, plus the Elapsed time since synchronization.

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