QueryPerformanceFrequency

  BOOL QueryPerformanceFrequency(lpliPerformanceFreq)    
  LPLARGE_INTEGER lpliPerformanceFreq; /* current frequency */

The QueryPerformanceFrequency function obtains the frequency of the high-resolution performance counter, if one exists.

Parameters

lpliPerformanceFreq

Points to a variable that the function will set to the current performance counter frequency (in counts per second). If the installed hardware does not support a high-resolution performance counter, lpliPerformanceFreq 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

QueryPerformanceCounter