2010/9/8 vicente.botet
----- Original Message ----- From: "Matthieu Brucher"
To: Sent: Wednesday, September 08, 2010 5:48 PM Subject: Re: [Boost-users] Interaction between boost::timer and boost::thread 2010/9/8 Roman Perepelitsa
: 2010/9/8 Matthieu Brucher
Is there a known interaction between these two classes? I'm trying to create a simple example, but I can't get boost::timer to count sleep() time :|
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. Roman Perepelitsa.
It's strange that it is available in Boost without this kind of warning! Is there a portable and reliable timer in Boost ?
You can take a look at Boost.Chrono, and Boost.Stopwatches which should be review soon.
https://svn.boost.org/trac/boost/wiki/LibrariesUnderConstruction#Boost.Chron... https://svn.boost.org/trac/boost/wiki/LibrariesUnderConstruction#Boost.Stopw...
Thanks for the links. I will watch them and if they make it to an official release, I'll check if they can fulfill my needs. I can't use them now in production code when they may not be supported in the future. Matthieu -- Information System Engineer, Ph.D. Blog: http://matt.eifelle.com LinkedIn: http://www.linkedin.com/in/matthieubrucher