|
Boost : |
From: John Maddock (John_Maddock_at_[hidden])
Date: 2000-04-06 06:07:16
Beman,
I've been hacking at your timer.cpp implementation slightly to add support
for high performance counters under Win32, this has two effects: the timer
resolution is reduced to micro-second level, and the timer::max_elapsed()
increases to about 2000 years - which should just about suffice for most
people :-)
Anyway the modified timer.cpp is attached.
BTW I'm aware that I could equally have used rdtsc for an even higher
resolution, but that seemed like overkill for most uses.
- John.
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk