Subject: [Boost-bugs] [Boost C++ Libraries] #3345: Support for gettimeofday() in high_resolution_timer.
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2009-08-14 11:55:38
#3345: Support for gettimeofday() in high_resolution_timer.
---------------------------------------------------------+------------------
Reporter: ej.grace@⦠| Owner: hkaiser
Type: Patches | Status: new
Milestone: Boost 1.40.0 | Component: None
Version: Boost Development Trunk | Severity: Cosmetic
Keywords: high_resolution_timer gettimeofday() darwin |
---------------------------------------------------------+------------------
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.
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.
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/3345> Boost C++ Libraries <http://www.boost.org/> Boost provides free peer-reviewed portable C++ source libraries.
This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:01 UTC