Skip to content

Latest commit

 

History

History
48 lines (32 loc) · 1.18 KB

QueryPerformanceFrequency.md

File metadata and controls

48 lines (32 loc) · 1.18 KB

Home

Function name : QueryPerformanceFrequency

Group: Time - Library: kernel32


The QueryPerformanceFrequency function retrieves the frequency of the high-resolution performance counter, if one exists. The frequency cannot change while the system is running.


Code examples:

Using the high-resolution performance counter

Declaration:

BOOL QueryPerformanceFrequency(
  LARGE_INTEGER *lpFrequency   // current frequency
);  

FoxPro declaration:

DECLARE INTEGER QueryPerformanceFrequency IN kernel32;
	STRING @lpFrequency  

Parameters:

lpFrequency [out] Pointer to a variable that receives the current performance-counter frequency, in counts per second.


Return value:

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


Comments:

Note that the frequency of the high-resolution performance counter is not the processor speed.
See GetTickCount function.