
21 Mar
2007
21 Mar
'07
10:56 p.m.
On 3/21/07, Sam Schetterer <samthecppman@gmail.com> 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