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
.Runtime
.InteropServices
;
7 internal static partial class Interop
9 internal static partial class Kernel32
11 // The actual native signature is:
12 // BOOL WINAPI QueryPerformanceFrequency(
13 // _Out_ LARGE_INTEGER* lpFrequency
16 // We take a long* (rather than a out long) to avoid the pinning overhead.
17 // We don't set last error since we don't need the extended error info.
19 [DllImport(Libraries
.Kernel32
, ExactSpelling
= true)]
20 internal static extern unsafe BOOL
QueryPerformanceFrequency(long* lpFrequency
);