
12 Feb
2005
12 Feb
'05
3:15 a.m.
On Fri, 11 Feb 2005 19:57:56 -0500, Preston A. Elder <prez@neuromancy.net> wrote:
On Fri, 11 Feb 2005 19:30:36 -0500, christopher diggins wrote: [...] std::clock() and I assume QueryPerformanceCounter() give you an amount of clock ticks. This number is only incremented when the CPU works on your task. AFAIK your assumption is wrong.
The only problem with QueryPerformanceCounter() is that it can "jump" on some chipsets. A good idea is to use a "control timer" with lower frequency (or just timeBeginPeriod() + timeGetTime(), if its precision is good enough for the task). Michael