<PackageReference Include="System.Reactive" Version="4.2.2" />

SystemClock

public static class SystemClock
(Infrastructure) Provides access to local system clock services.
public static DateTimeOffset UtcNow { get; }

Gets the local system clock time.

public static void AddRef()

Adds a reference to the system clock monitor, causing it to be sending notifications.

public static void Release()

Removes a reference to the system clock monitor, causing it to stop sending notifications if the removed reference was the last one.