Re: QueryPerformanceCounter Resolution

Tech-Archive recommends: Fix windows errors by optimizing your registry



Ogan <Ogan@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote:

May be its easy, but where i can see processor type ?

What decision would you make if you knew? You can fetch
QueryPerformanceFrequency; if it's less than 10 million or so, then you're
using the PIT.

If im uderstanding you answer right, on 1-processor systems
QueryPerformanceCounter give me resolution 1.19-3.58 MHz(its nead 2-3
microseconds right ? ). On Multi processors(2 or more processors) we can get
1 GHz(nanosecond ?) resolution, but on this systems values is not reliable...

More than uniprocessor systems, what it takes is the standard uniprocessor
HAL (hal.dll). Some newer computers use the APIC HAL (halapic.dll), and it
uses a smarter method.

And All this mean that max resolution is 1.19-3.58 MHz ?

The max resolution depends on the system.
--
Tim Roberts, timr@xxxxxxxxx
Providenza & Boekelheide, Inc.
.