[Boost-bugs] [Boost C++ Libraries] #9342: Regression on process_cpu_clock::timepoint io on V2

Subject: [Boost-bugs] [Boost C++ Libraries] #9342: Regression on process_cpu_clock::timepoint io on V2
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2013-11-05 05:44:20


#9342: Regression on process_cpu_clock::timepoint io on V2
------------------------------+---------------------
 Reporter: viboes | Owner: viboes
     Type: Bugs | Status: new
Milestone: To Be Determined | Component: chrono
  Version: Boost 1.54.0 | Severity: Problem
 Keywords: |
------------------------------+---------------------
 The following example
 #include <boost/chrono/chrono_io.hpp>

 {{{
 #define BOOST_CHRONO_PROVIDES_DEPRECATED_IO_SINCE_V2_0_0

 int main() {
   std::cout<< boost::chrono::process_cpu_clock::now() << std::endl;
 }
 }}}

 outputs

 {{{
 {1383629724660000000;0;0} nanoseconds since process start-up
 }}}

 while if BOOST_CHRONO_PROVIDES_DEPRECATED_IO_SINCE_V2_0_0 is not defined,
 it outputs

 {{{
 1383629672240000000 nanoseconds since process start-up
 }}}

 A process_cpu_clock::duration::rep is a tuple like of 3 clocks real, user
 and system.

 The same problem for input. V1 manages a format {{{ {v1,v2;v3} }}} and is
 able to restore the 3 clocks, but V2 takes only the real clock in account.

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/9342>
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:14 UTC