|
Boost : |
From: Beman Dawes (bdawes_at_[hidden])
Date: 2003-03-24 10:12:58
Russell Hind wrote:
>Does this help?
>
>I've just run this quickly on my PIII 800 running Win2K SP3 and worse
>case for 1,000,000 calls to QueryPerformanceCounter was 1.92seconds,
>usually between 1.55 and 1.65 seconds (10 runs).
>
>LARGE_INTEGER Start, End, Temp;
> QueryPerformanceCounter(&Start);
> for (unsigned int i = 0; i < 1000000; ++i)
> {
> QueryPerformanceCounter(&Temp);
> }
> QueryPerformanceCounter(&End);
>
>LARGE_INTEGER Frequency;
> QueryPerformanceFrequency(&Frequency);
>
>double Time = (static_cast<double>(End.QuadPart) - Start.QuadPart) /
>Frequency.QuadPart;
>
>Doesn't seem to bad to me. Can't test on any more OSes as this is all
>we have installed.
Interesting. Could you please post the entire program as an attachment, so
I can just compile and run it without any cut-and-paste?
Thanks,
--Beman
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk