<PackageReference Include="Serilog" Version="4.4.0-dev-02438" />

System.TimeProvider

abstract class TimeProvider
A super-simple, cut-down subset of `System.TimeProvider` which we use internally to avoid a package dependency on platforms without it.
namespace System { internal abstract class TimeProvider { public static global::System.TimeProvider System { get; } public virtual long TimestampFrequency { get; } public DateTimeOffset GetLocalNow(); public virtual DateTimeOffset GetUtcNow(); public virtual long GetTimestamp(); public TimeSpan GetElapsedTime(long startingTimestamp, long endingTimestamp); public TimeSpan GetElapsedTime(long startingTimestamp); protected TimeProvider(); } }