QueryPerformanceCounter

  BOOL QueryPerformanceCounter(lpliPerformanceCount)    
  LPLARGE_INTEGER lpliPerformanceCount; /* current counter value */

The QueryPerformanceCounter function obtains the current value of the high-resolution performance counter, if one exists.

Parameters

lpliPerformanceCount

Points to a variable that the function will set to the current performance counter value (in counts). If the installed hardware does not support a high-resolution performance counter, lpliPerformanceCount is set to zero.

Return Value

If the installed hardware supports a high-resolution performance counter, the return value is TRUE. Otherwise, the return value is FALSE.

See Also

QueryPerformanceFrequency