queryperformancefrequency (kernel32)
Last changed: -71.245.77.30

.
Summary

C# Signature:

[DllImport("kernel32.dll", SetLastError=true)]
static extern bool QueryPerformanceFrequency(out long frequency);

VB Signature:

<DllImport("kernel32.dll", SetLastError:=True)> _
Shared Function QueryPerformanceFrequency(ByRef lpFrequency As Long) As Boolean
End Function

User-Defined Types:

None.

Notes:

Returns the number of counts per second for the high-performance counter.

Tips & Tricks:

Please add some!

Sample Code:

[DllImport("Kernel32.dll")]

public static extern bool QueryPerformanceFrequency(out long freq);

Alternative Managed API:

Do you know one? Please contribute it!

Documentation