Boost logo

Boost Users :

Subject: Re: [Boost-users] Interaction between boost::timer and boost::thread
From: Matthieu Brucher (matthieu.brucher_at_[hidden])
Date: 2010-09-08 12:11:02


2010/9/8 Raymond Burkholder <ray_at_[hidden]>:
>> >
>> > Timer uses clock() internally, which counts only CPU time on Linux and
> total
>> > time on Windows.
>> > Given non-portable nature of Boost.Timer, I would not recommend using
>> it.
>>
>> It's strange that it is available in Boost without this kind of warning!
>> Is there a portable and reliable timer in Boost ?
>>
>
> You could give the timer in boost::asio a shot, so to speak.

To get the elapsed time, perhaps I may rely on boost::datetime?

Matthieu

-- 
Information System Engineer, Ph.D.
Blog: http://matt.eifelle.com
LinkedIn: http://www.linkedin.com/in/matthieubrucher

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