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. 4 5 namespace System.Diagnostics 6 { 7 public partial class Stopwatch 8 { QueryPerformanceFrequency(out long value)9 private static bool QueryPerformanceFrequency(out long value) 10 { 11 return Interop.Sys.GetTimestampResolution(out value); 12 } 13 QueryPerformanceCounter(out long value)14 private static bool QueryPerformanceCounter(out long value) 15 { 16 return Interop.Sys.GetTimestamp(out value); 17 } 18 } 19 } 20