From these, it appears the function returns the value in Hz
QueryPerformaceFrequency()
Units of QueryPerformanceFrequency
Running the intel Core i5 - runs at 2.8 G Hz
The function appears to return M Hz ?
The value in the debugger is 1,328,261
- Why is the value only 7 digits?
- Why doesn't that value reflect 2 Ghz? (i.e. 2,8.....)
What am I missing here?
Using the function incorrectly (below)?
LARGE_INTEGER li;
QueryPerformanceFrequency(&li);
printf("Ticks: %f\n", double(li.QuadPart) );