Boost logo

Boost Users :

Subject: Re: [Boost-users] boost timer
From: Philipp Kraus (philipp.kraus_at_[hidden])
Date: 2011-08-14 17:26:08


On 2011-08-14 23:22:38 +0200, Gordon Woodhull said:

> On Aug 14, 2011, at 3:40 PM, Kraus Philipp <philipp.kraus_at_[hidden]> wrote:
>
>> timer t;
>> run_algorithm;
>> std::cout << t.elapsed << std::endl;
>
> Boost.Timer has some problems, I've seen it measure CPU time instead of
> wall time on some platforms and I'm not sure about the accuracy.
>
> I don't know about the MPI timer, but I would go with Chrono until
> Stopwatches is out.

Do you know anything about "CPU cycling"? Can I detect the CPU cycles
which are elapsed during runtime? I need a "time value" for detecting
runtime only.

Thanks

Phil


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