[Boost-users] [boost] [chrono] v0.4 New thread_clock

6 views
Skip to first unread message

vicente.botet

unread,
Feb 28, 2010, 9:27:10 AM2/28/10
to bo...@lists.boost.org, boost...@lists.boost.org
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.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

Roland Bock

unread,
Mar 1, 2010, 12:26:24 AM3/1/10
to boost...@lists.boost.org
> 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

vicente.botet

unread,
Mar 9, 2010, 3:10:22 PM3/9/10
to boost...@lists.boost.org
Hi,

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

Roland Bock

unread,
Mar 9, 2010, 5:30:46 PM3/9/10
to boost...@lists.boost.org
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,

Roland

vicente.botet

unread,
Mar 13, 2010, 7:57:48 PM3/13/10
to boost...@lists.boost.org
Hi Roland,
----- Original Message -----
Sent: Tuesday, March 09, 2010 11:30 PM
Subject: 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
Reply all
Reply to author
Forward
0 new messages