Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r67783 - trunk/libs/chrono/example
From: vicente.botet_at_[hidden]
Date: 2011-01-08 10:21:23


Author: viboes
Date: 2011-01-08 10:21:20 EST (Sat, 08 Jan 2011)
New Revision: 67783
URL: http://svn.boost.org/trac/boost/changeset/67783

Log:
Boost.Chrono: Sandia-pgi Make dependencies to process and thread clocks explicit so I can identify what don't works better

 Test output: Sandia-pgi-10.1 - chrono - arithmetic_pass_shared / pgi-10.1
Rev 67766 / Sat, 8 Jan 2011 07:38:17 +0000
Report Time: Sat, 8 Jan 2011 12:49:04 +0000

Output by test variants:
boost/bin.v2/libs/chrono/test/arithmetic_pass_shared.test/pgi-10.1/debug/threading-multi
boost/bin.v2/libs/chrono/test/arithmetic_pass_shared.test/pgi-10.1/debug/threading-multi/duration

Text files modified:
   trunk/libs/chrono/example/chrono_accuracy_test.cpp | 4 ++
   trunk/libs/chrono/example/french.cpp | 42 ++++++++++++++++++++-------------------
   2 files changed, 25 insertions(+), 21 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-08 10:21:20 EST (Sat, 08 Jan 2011)
@@ -8,7 +8,9 @@
 
 // See http://www.boost.org/libs/chrono for documentation.
 
-//#include <boost/chrono/process_cpu_clocks.hpp>
+#include <boost/chrono/chrono.hpp>
+#include <boost/chrono/process_cpu_clocks.hpp>
+#include <boost/chrono/thread_clock.hpp>
 #include <boost/chrono/timer.hpp>
 #include <cstdlib> // for atol()
 #include <iostream>

Modified: trunk/libs/chrono/example/french.cpp
==============================================================================
--- trunk/libs/chrono/example/french.cpp (original)
+++ trunk/libs/chrono/example/french.cpp 2011-01-08 10:21:20 EST (Sat, 08 Jan 2011)
@@ -7,25 +7,27 @@
 
 // Adapted to Boost from the original Hawards's code
 
- #include <boost/chrono/chrono_io.hpp>
- #include <iostream>
- #include <locale>
+#include <boost/chrono/chrono_io.hpp>
+#include <boost/chrono/process_cpu_clocks.hpp>
+#include <boost/chrono/thread_clock.hpp>
+#include <iostream>
+#include <locale>
 
- int main()
- {
- using namespace std;
- using namespace boost;
- using namespace boost::chrono;
+int main()
+{
+ using namespace std;
+ using namespace boost;
+ using namespace boost::chrono;
 
- cout.imbue(locale(locale(), new duration_punct<char>
- (
- duration_punct<char>::use_long,
- "secondes", "minutes", "heures",
- "s", "m", "h"
- )));
- hours h(5);
- minutes m(45);
- seconds s(15);
- milliseconds ms(763);
- cout << h << ", " << m << ", " << s << " et " << ms << '\n';
- }
+ cout.imbue(locale(locale(), new duration_punct<char>
+ (
+ duration_punct<char>::use_long,
+ "secondes", "minutes", "heures",
+ "s", "m", "h"
+ )));
+ hours h(5);
+ minutes m(45);
+ seconds s(15);
+ milliseconds ms(763);
+ cout << h << ", " << m << ", " << s << " et " << ms << '\n';
+}


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