Skip to content

Latest commit

 

History

History
50 lines (33 loc) · 1.19 KB

QueryPerformanceCounter.md

File metadata and controls

50 lines (33 loc) · 1.19 KB

Home

Function name : QueryPerformanceCounter

Group: Time - Library: kernel32


The QueryPerformanceCounter function retrieves the current value of the high-resolution performance counter.


Code examples:

Using the GetTempFileName
Using the high-resolution performance counter

Declaration:

BOOL QueryPerformanceCounter(
  LARGE_INTEGER *lpPerformanceCount   // counter value
);  

FoxPro declaration:

DECLARE INTEGER QueryPerformanceCounter IN kernel32;
	STRING @lpPerformanceCount  

Parameters:

lpPerformanceCount [out] Pointer to a variable that receives the current performance-counter value, in counts.


Return value:

If the function succeeds, the return value is nonzero.


Comments:

See functions QueryPerformanceFrequency, and GetTickCount.

Check the link for more information on time counters.