Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r68114 - trunk/libs/chrono/example
From: vicente.botet_at_[hidden]
Date: 2011-01-13 13:17:18


Author: viboes
Date: 2011-01-13 13:17:17 EST (Thu, 13 Jan 2011)
New Revision: 68114
URL: http://svn.boost.org/trac/boost/changeset/68114

Log:
Boost.Chrono: Add debug info for accuracy test

Text files modified:
   trunk/libs/chrono/example/chrono_accuracy_test.cpp | 3 +++
   1 files changed, 3 insertions(+), 0 deletions(-)

Modified: trunk/libs/chrono/example/chrono_accuracy_test.cpp
==============================================================================
--- trunk/libs/chrono/example/chrono_accuracy_test.cpp (original)
+++ trunk/libs/chrono/example/chrono_accuracy_test.cpp 2011-01-13 13:17:17 EST (Thu, 13 Jan 2011)
@@ -36,7 +36,9 @@
     std::cout << "accuracy test for " << timeout_in_secs << " second(s)...";
 
     std::clock_t timeout_in_clock_t = std::clock();
+ std::cout << "accuracy test. Now=" << timeout_in_clock_t << " ticks...";
     timeout_in_clock_t += (timeout_in_secs * CLOCKS_PER_SEC);
+ std::cout << "accuracy test. Timeout=" << timeout_in_clock_t << " ticks...";
 
     boost::chrono::system_timer sys;
 #ifdef BOOST_CHRONO_HAS_CLOCK_STEADY
@@ -58,6 +60,7 @@
     boost::chrono::high_resolution_timer::duration hires_dur = hires.elapsed();
     boost::chrono::process_cpu_clock::duration times;
     times = process.elapsed();
+ std::cout << "accuracy test. Now=" << now << " ticks...";
 
     std::cout << std::endl;
 


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