QueryPerformanceFrequency (coredll)
Last changed: damon@agilefactor.com-205.145.64.64

.
Summary
This function retrieves the frequency of the high-resolution performance counter if one is provided by the OEM.

C# Signature:

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

User-Defined Types:

None.

Notes:

None.

Tips & Tricks:

Please add some!

Sample Code:

/// <summary>

/// Queries the performance frequency.

/// </summary>

/// <param name="freq">The frequency used by this highly robust measurement counter</param>

/// <returns>A boolean indicating success or failure</returns>

[DllImport("Kernel32.dll")]

public static extern bool QueryPerformanceFrequency(out long freq);

Alternative Managed API:

Do you know one? Please contribute it!

Documentation