Move portable thread pool to shared partition (dotnet/corert#7828)
[mono-project.git] / netcore / System.Private.CoreLib / shared / System / HighPerformanceCounter.Unix.cs
blobcfe582ddfdc7398d7d3c178ee2a911d5067a17dc
1 // Licensed to the .NET Foundation under one or more agreements.
2 // The .NET Foundation licenses this file to you under the MIT license.
3 // See the LICENSE file in the project root for more information.
5 using System.Diagnostics;
7 namespace System
9 internal static class HighPerformanceCounter
11 public static ulong TickCount => Interop.Sys.GetTimestamp();
13 // Cache the frequency on the managed side to avoid the cost of P/Invoke on every access to Frequency
14 public static ulong Frequency { get; } = Interop.Sys.GetTimestampResolution();