The QueryPerformanceFrequency function retrieves the frequency of the high-resolution performance counter, if one exists. The frequency cannot change while the system is running.
If the installed hardware supports a high-resolution performance counter, the return value is true.
If the function fails, the return value is false. To get extended error information, call GetLastWin32Error. For example, if the installed hardware does not support a high-resolution performance counter, the function fails.
Note The frequency of the high-resolution performance counter is not the processor speed.
Kernel Class | Tao.Platform.Windows Namespace | QueryPerformanceCounter