
Hi, 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.htm.... 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á

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 :-) Will thread_clock work for Windows as well? Regards, Roland

Hi,
sorry for the late response.
----- Original Message -----
From: "Roland Bock"
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

vicente.botet wrote:
Hi,
sorry for the late response.
No problem :-)
In my former company we did this: FILETIME creationTime; FILETIME exitTime; FILETIME kernelTime; FILETIME userTime; GetThreadTimes (GetCurrentThread (), &creationTime, &exitTime, &kernelTime, &userTime); Regards, Roland

Hi Roland, ----- Original Message ----- From: Roland Bock To: boost-users@lists.boost.org Sent: Tuesday, March 09, 2010 11:30 PM Subject: Re: [Boost-users] [boost] [chrono] v0.4 New thread_clock vicente.botet wrote: Hi, sorry for the late response. No problem :-) 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. In my former company we did this: FILETIME creationTime; FILETIME exitTime; FILETIME kernelTime; FILETIME userTime; GetThreadTimes (GetCurrentThread (), &creationTime, &exitTime, &kernelTime, &userTime); Regards, ___________________________________ Happy to hear that there exist a Windows interface. I will try it tomorrow. Thanks a lot, Vicente
participants (2)
-
Roland Bock
-
vicente.botet