Subject: Re: [Boost-bugs] [Boost C++ Libraries] #9379: 'boost::chrono::steady_clock' has not been declared" on boost 1.55, hp-ux 11.23 IA, gcc 4.6
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2014-06-20 19:47:26
#9379: 'boost::chrono::steady_clock' has not been declared" on boost 1.55, hp-ux
11.23 IA, gcc 4.6
-------------------------------+--------------------------
Reporter: gengyonghui@⦠| Owner: viboes
Type: Bugs | Status: reopened
Milestone: To Be Determined | Component: chrono
Version: Boost 1.55.0 | Severity: Problem
Resolution: | Keywords: steady_clock
-------------------------------+--------------------------
Changes (by brian.groose@â¦):
* status: closed => reopened
* resolution: worksforme =>
Comment:
I have the same issue on HP/UX. CLOCK_MONOTONIC is not available on
HP/UX. I suppose CLOCK_REALTIME would be a non-optimal fallback.
However, there is a gethrtime() function that returns a similar value to
clock_gettime(CLOCK_MONOTONIC), also measured in nanoseconds:
typedef int64_t hrtime_t;
hrtime_t gethrtime(void);
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/9379#comment:10> 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:16 UTC