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.
Using the high-resolution performance counter
BOOL QueryPerformanceFrequency(
LARGE_INTEGER *lpFrequency // current frequency
);
DECLARE INTEGER QueryPerformanceFrequency IN kernel32;
STRING @lpFrequency
lpFrequency [out] Pointer to a variable that receives the current performance-counter frequency, in counts per second.
If the installed hardware supports a high-resolution performance counter, the return value is nonzero.
Note that the frequency of the high-resolution performance counter is not the processor speed.
See GetTickCount function.