Re: QueryPeroformanceFrequency():
Read Microsoft's description and the "community comments" on it.
QueryPerformanceFrequency()[
^]
As one person noted, you are querying the frequency of the
timer, not the frequency of the
cpu processor. So regardless of what your CPU Chip speed is, this is a different "frequency".
Consider if the performance counter was, in fact, the cpu cycle speed. Then would the number change when you switched to battery power? Certainly your processor chip speed does. How about "turbo boost" mode? If the cpu cycle speed were variable as it is in modern chips and under certain circumstances, the high percision timer would be useless.
Microsoft's documentation clearly states :
Quote:
The frequency cannot change while the system is running.
which implies that it does not follow the ups and downs of the cpu chip clock speed.