Поделиться через


QueryPerformanceCounter (Windows Embedded CE 6.0)

1/6/2010

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

Syntax

BOOL QueryPerformanceCounter(
  LARGE_INTEGER* lpPerformanceCount
);

Parameters

  • 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 Value

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

Remarks

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

Requirements

Header winbase.h
Library coredll.lib
Windows Embedded CE Windows CE 2.0 and later

See Also

Reference

Time Functions
QueryPerformanceFrequency
GetTickCount

Other Resources

Supporting High-Resolution Timers
Timer Driver Reference