Boost logo

Boost :

From: Cory Nelson (phrosty_at_[hidden])
Date: 2007-03-21 18:56:54


On 3/21/07, Sam Schetterer <samthecppman_at_[hidden]> wrote:
> Well, when you timed the code, ou used std::clock. Howver, I have found that
> on windows, using std::time is much more accurate than clock and gives more
> reliable results.

clock() and time() both use wall-time on Windows, so they are not very
useful for benchmarking. The most accurate way to do it is
GetThreadTimes().

-- 
Cory Nelson

Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk