QueryPerformanceCounter

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

At a Glance

Header file: Winbase.h
Windows CE versions: 2.0 and later

Syntax

BOOL QueryPerformanceCounter(
LARGE_INTEGER
* lpPerformanceCount);

Parameters

lpPerformanceCount

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 to zero.

Return Values

Nonzero indicates that the installed hardware supports a high-resolution performance counter. Zero indicates that the installed hardware does not support a high-resolution performance counter.

See Also

QueryPerformanceFrequency