QueryPerformanceCounter (Windows CE 5.0)

Windows CE 5.0
Send Feedback

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

BOOL QueryPerformanceCounter(
  LARGE_INTEGER* lpPerformanceCount 


[in] Pointer to a variable that the function sets, in counts, to the current performance-counter value.

If the installed hardware does not support a high-resolution performance counter, this parameter can be set to zero.

Return Values

If the function succeeds, it returns TRUE to indicate that a performance counter 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 | QueryPerformanceFrequency | GetTickCount | Supporting High-Resolution Timers | Timer Driver Reference

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.