Re: QueryPerformanceFrequency

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



"David Webber" <dave@xxxxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message news:ejOAruBiIHA.5956@xxxxxxxxxxxxxxxxxxxxxxx
The topic "About timers" in the documentation says:

"If a high-resolution performance counter exists on the system, you can use the QueryPerformanceFrequency function to express the frequency, in counts per second"

The "if" is a bit worrying: am I likely to encounter systems on which there isn't one?


IMO you can ignore that "if." It is a holdover from the long-gone days when Windows was supported on several processor families. All Intel and Intel-compatible processors support the high speed timer. (But I don't know anything about the Windows CE platforms!)

--
Scott McPhillips [VC++ MVP]

.