QueryPerformanceCounter (Compact 2013)

3/28/2014

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


BOOL QueryPerformanceCounter(
  LARGE_INTEGER* lpPerformanceCount
);

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.

TRUE indicates that a performance counter value was successfully filled in. FALSE indicates failure.

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

Header

winbase.h

Library

coredll.lib

Show: