Boost logo

Boost Users :

From: Jeff Garland (jeff_at_[hidden])
Date: 2007-04-20 13:03:31


François Duranleau wrote:

> On Fri, 20 Apr 2007, Przemyslaw Tumidajewicz wrote:
> boost::timer uses std::clock to measure time, which measures only the
> time a process spends using the CPU. What you want is to use a real time
> clock. You can to that with the Boost.DateTime library.
>
> Example: (using microseconds precision, untested)
>
> ..snip...

There's actually a bunch of timer rewrites in the vault right now

http://boost-consulting.com/vault/index.php?PHPSESSID=89ru43aab3t1dud9qpkjv7hu87&direction=0&order=&directory=date_time

The one I know I've used is new_timer.zip 15.05.2006 which is based on
date-time microsecond clock.

Jeff


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net