Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r59054 - sandbox/chrono/libs/chrono/example
From: vicente.botet_at_[hidden]
Date: 2010-01-15 12:22:23


Author: viboes
Date: 2010-01-15 12:22:22 EST (Fri, 15 Jan 2010)
New Revision: 59054
URL: http://svn.boost.org/trac/boost/changeset/59054

Log:
Boost.Chrono: Version 0.3.0,
* Added stopclock test
Text files modified:
   sandbox/chrono/libs/chrono/example/stopwatch_example.cpp | 3 ++-
   1 files changed, 2 insertions(+), 1 deletions(-)

Modified: sandbox/chrono/libs/chrono/example/stopwatch_example.cpp
==============================================================================
--- sandbox/chrono/libs/chrono/example/stopwatch_example.cpp (original)
+++ sandbox/chrono/libs/chrono/example/stopwatch_example.cpp 2010-01-15 12:22:22 EST (Fri, 15 Jan 2010)
@@ -10,6 +10,7 @@
 #include <iostream>
 #include <boost/chrono/process_times.hpp>
 #include <boost/chrono/stopwatch.hpp>
+#include <boost/chrono/stopclock.hpp>
 #include <boost/chrono/stopwatch_accumulator.hpp>
 #include <boost/chrono/process_cpu_clocks.hpp>
 #include <boost/chrono/time_formatter.hpp>
@@ -26,7 +27,7 @@
   stopwatch<process_real_cpu_clock>::reporter x("\nF1 %dsec\n");
   
   run_timer y;
- stopwatch_reporter<stopwatch<process_cpu_clock> > z;
+ stopclock<> z;
   stopwatch_reporter<stopwatch<process_real_cpu_clock>, digital_time_formatter> hhmmss;
     
 


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