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 namespace System
.Diagnostics
7 public partial class Stopwatch
9 private static long QueryPerformanceFrequency()
11 return (long)Interop
.Sys
.GetTimestampResolution();
14 private static long QueryPerformanceCounter()
16 return (long)Interop
.Sys
.GetTimestamp();