Opened 7 years ago
Last modified 7 years ago
#11639 assigned Support Requests
document std's vs boost's chrono::steady_clock system-wideness discrepancy
Reported by: | Owned by: | viboes | |
---|---|---|---|
Milestone: | To Be Determined | Component: | chrono |
Version: | Boost 1.59.0 | Severity: | Problem |
Keywords: | Cc: |
Description
boost doc states that its steady_clock is system-wide, in doc/libs/1_59_0/doc/html/chrono/reference.html#chrono.reference.cpp0x.system_clocks_hpp.steady_clock
steady_clock class provides access to the system-wide steady clock. The current time can be obtained by calling steady_clock::now(). There is no fixed relationship between values returned by steady_clock::now() and wall-clock time.
As far as I know, the C++11 standard does not make this requirement.
It would be good to highlight this discrepancy in the doc, especially since the doc "Included on the C++11 Recommendation" section let's you think that boost's chrono and std's chrono are interchangeable.
Change History (5)
follow-up: 2 comment:1 by , 7 years ago
Status: | new → assigned |
---|
comment:2 by , 7 years ago
Replying to viboes:
What is wrong on the text? what is different from the C++11 standard?
boost doc says: "steady_clock class provides access to the system-wide steady clock."
As far as I know, there is no promise in the standard that the steady_clock is system-wide. For instance the steady_clock epoch may be related to the process-creation.
comment:3 by , 7 years ago
Boost.Chrono uses system wide monotonic clocks. Boost.Chrono has specific process clocks, SO I think that it is important to make the distiction.
Should I remove "system-wide"?
What is wrong on the text? what is different from the C++11 standard?