diff --git a/src/ZeroLog/Utils/HighResolutionDateTime.cs b/src/ZeroLog/Utils/HighResolutionDateTime.cs index b6fa19e5..5cc53905 100644 --- a/src/ZeroLog/Utils/HighResolutionDateTime.cs +++ b/src/ZeroLog/Utils/HighResolutionDateTime.cs @@ -26,6 +26,9 @@ public static DateTime UtcNow [DebuggerStepThrough] private static bool CheckAvailability() { + if (!RuntimeInformation.IsOSPlatform(OSPlatform.Windows)) + return false; + try { GetSystemTimePreciseAsFileTime(out _);