QueryPerformanceFrequency (Windows CE 5.0)

Send Feedback

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

BOOL QueryPerformanceFrequency(LARGE_INTEGER* lpFrequency );


  • lpFrequency
    [out] Pointer to a variable that the function sets, in counts per second, to the current performance-counter frequency.

    If the installed hardware does not support a high-resolution performance counter, the value passed back through this pointer can be zero.

Return Values

If the function succeeds, it returns TRUE to indicate that a performance frequency value was successfully filled in.

If the function fails, it returns FALSE.


If the hardware does not support a high frequency counter, QueryPerformanceFrequency will return 1000 because the API defaults to a milliseconds GetTickCount implementation.


OS Versions: Windows CE 2.0 and later.
Header: Winbase.h.
Link Library: Coredll.lib.

See Also

Time Functions | QueryPerformanceCounter | Supporting High-Resolution Timers | Timer Driver Reference

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.