Important: |
---|
This is retired content. This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This content may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist. |
A version of this page is also available for
4/8/2010
This function retrieves the frequency of the high-resolution performance counter if one is provided by the OEM.
Syntax
BOOL QueryPerformanceFrequency( LARGE_INTEGER* lpFrequency ); |
Parameters
- 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 Value
TRUE indicates that a performance frequency value was successfully filled in. FALSE indicates failure.
Remarks
If the hardware does not support a high frequency counter, QueryPerformanceFrequencywill return 1000 because the API defaults to a milliseconds GetTickCountimplementation.
Requirements
Header | winbase.h |
Library | coredll.lib |
Windows Embedded CE | Windows CE 2.0 and later |
Windows Mobile | Windows Mobile Version 5.0 and later |