Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r74614 - trunk/boost/chrono/detail/inlined/posix
From: vicente.botet_at_[hidden]
Date: 2011-09-29 16:52:55


Author: viboes
Date: 2011-09-29 16:52:55 EDT (Thu, 29 Sep 2011)
New Revision: 74614
URL: http://svn.boost.org/trac/boost/changeset/74614

Log:
Chrono: rollback the use of process cpu
Text files modified:
   trunk/boost/chrono/detail/inlined/posix/process_cpu_clocks.hpp | 11 -----------
   1 files changed, 0 insertions(+), 11 deletions(-)

Modified: trunk/boost/chrono/detail/inlined/posix/process_cpu_clocks.hpp
==============================================================================
--- trunk/boost/chrono/detail/inlined/posix/process_cpu_clocks.hpp (original)
+++ trunk/boost/chrono/detail/inlined/posix/process_cpu_clocks.hpp 2011-09-29 16:52:55 EDT (Thu, 29 Sep 2011)
@@ -43,16 +43,6 @@
 
 process_real_cpu_clock::time_point process_real_cpu_clock::now() BOOST_CHRONO_NOEXCEPT
 {
-#if defined(_POSIX_CPUTIME)
- timespec ts;
- if ( ::clock_gettime( CLOCK_PROCESS_CPUTIME_ID, &ts ) )
- {
- BOOST_ASSERT(0 && "Boost::Chrono - Internal Error");
- }
-
- return time_point(duration(
- static_cast<process_real_cpu_clock::rep>( ts.tv_sec ) * 1000000000 + ts.tv_nsec));
-#else
     tms tm;
     clock_t c = ::times( &tm );
     if ( c == clock_t(-1) ) // error
@@ -72,7 +62,6 @@
         }
     }
     return time_point();
-#endif
 }
 process_real_cpu_clock::time_point process_real_cpu_clock::now(
         system::error_code & ec)


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk