|
Boost : |
From: Michael Walter (michael.walter_at_[hidden])
Date: 2005-02-11 22:15:16
On Fri, 11 Feb 2005 19:57:56 -0500, Preston A. Elder
<prez_at_[hidden]> 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
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk