Boost C++ Libraries: Ticket #3345: Support for gettimeofday() in high_resolution_timer. https://svn.boost.org/trac10/ticket/3345 <p> On certain platforms, such as OS X (Darwin) util::high_resolution_timer ultimately defaults to using std::clock(). On this platform, and probably many others gettimeofday() is a reasonable, nominally microsecond precision, alternative. </p> <p> Attached is a version which will make use of gettimeofday() if there are no alternatives and the existence of gettimeofday() is guaranteed by the macro BOOST_HAS_GETTIMEOFDAY. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/3345 Trac 1.4.3 ej.grace@… Fri, 14 Aug 2009 11:56:51 GMT attachment set https://svn.boost.org/trac10/ticket/3345 https://svn.boost.org/trac10/ticket/3345 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">high_resolution_timer.hpp</span> </li> </ul> <p> A patched version of high_resolution_timer.hpp that includes support for gettimeofday() if it exists in preference to boost::timer(). </p> Ticket ej.grace@… Fri, 14 Aug 2009 12:29:37 GMT <link>https://svn.boost.org/trac10/ticket/3345#comment:1 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/3345#comment:1</guid> <description> <p> I have just noticed there are some subtle problems with this. I will review them and upload a new version. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>anonymous</dc:creator> <pubDate>Fri, 14 Aug 2009 12:49:25 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/3345#comment:2 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/3345#comment:2</guid> <description> <p> Thanks! I committed a patched version anyway (I was faster than you :-P). But I'll update it as soon as you found a fix for the problems. </p> <p> Regards Hartmut </p> </description> <category>Ticket</category> </item> <item> <author>ej.grace@…</author> <pubDate>Fri, 14 Aug 2009 15:33:29 GMT</pubDate> <title>attachment set https://svn.boost.org/trac10/ticket/3345 https://svn.boost.org/trac10/ticket/3345 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">high_resolution_timer.2.hpp</span> </li> </ul> <p> Fixed update of the high_precision_timer - differences of unsigned integers are now explicitly mangaged. </p> Ticket Hartmut Kaiser Mon, 21 Sep 2009 19:42:09 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/3345#comment:3 https://svn.boost.org/trac10/ticket/3345#comment:3 <ul> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">fixed</span> </li> </ul> <p> The patch has been integrated </p> Ticket