I'm pleased to announce the version 0.4 of the Boost.Chrono library. The implementaton is stable, I don't plan to add more features before review. I'll concentrate in improving the documentation and the tests.
I know that review managers are hard to find, so if you are interested in the library, please contact me or the Review Wizards.
The library can be downloaded from http://www.boostpro.com/vault/index.php?action=downloadfile&filename=chrono.zip&directory=System& and the documentation is online on the sandbox http://svn.boost.org/svn/boost/sandbox/chrono/libs/chrono/doc/html/index.html.
New Features since v0.3.2:
* Suspendible Clock concept + template class suspendible_clock<>
* Added scope_suspend which do suspend/resume if the Clock is a model of Suspendible Clock concept, and nothing otherwise.
* thread_clock support on platforms providing it natively.
* Added support for wide character for stopwatch_reporter, stopclock, and stopclock_accumulator.
* digital_time renamed t24_hours
Perf
* Added performances measures.
Bug Fixes
* Bug on timeval_demo.
time_point t(duration(xtime(0))); // this was taken as a function declaration
gettimeofday((timeval*)&t, 0);
return t;
time_point t(duration(xtime(0))); // this was taken as a function declaration gettimeofday((timeval*)&t, 0); return t; by
timeval tv;
gettimeofday(&tv, 0);
xtime xt( tv.tv_sec, tv.tv_usec);
return time_point(duration(xt));
* Bug on run_timer_test (add a global variable to avoid optimization that removes completely the code to be measured
Best regards,
_____________________
Vicente Juan Botet Escribá
_______________________________________________
Boost-users mailing list
Boost...@lists.boost.org
http://lists.boost.org/mailman/listinfo.cgi/boost-users
This looks very nice! I am looking forward to replacing the crude code
we are currently using for measuring cpu and wall time per thread :-)
Will thread_clock work for Windows as well?
Regards,
Roland
sorry for the late response.
----- Original Message -----
From: "Roland Bock" <rb...@eudoxos.de>
To: <boost...@lists.boost.org>
Sent: Monday, March 01, 2010 6:26 AM
Subject: Re: [Boost-users] [boost] [chrono] v0.4 New thread_clock
>
>> I'm pleased to announce the version 0.4 of the Boost.Chrono library. The implementaton is stable, I don't plan to add more features before review. I'll concentrate in improving the documentation and the tests.
>
> This looks very nice! I am looking forward to replacing the crude code
> we are currently using for measuring cpu and wall time per thread :-)
Glad to hear :)
> Will thread_clock work for Windows as well?
The current implemtation works only on Posix systems providing this feature. This has allowed me to make some performances measures i needed to do, to evaluate the time spent by the measures themselves.
For the moment I have not seen if this is even possible. I don't know the Windows interface at all. Maybe some Windows gurus can give me some pointers on whether this is possible and how.
Best,
Vicente
Hi, sorry for the late response.
Will thread_clock work for Windows as well?The current implemtation works only on Posix systems providing this feature. This has allowed me to make some performances measures i needed to do, to evaluate the time spent by the measures themselves. For the moment I have not seen if this is even possible. I don't know the Windows interface at all. Maybe some Windows gurus can give me some pointers on whether this is possible and how.
----- Original Message -----From: Roland BockSent: Tuesday, March 09, 2010 11:30 PMSubject: Re: [Boost-users] [boost] [chrono] v0.4 New thread_clock
___________________________________Happy to hear that there exist a Windows interface. I will try it tomorrow.Thanks a lot,Vicente