Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r68790 - in sandbox/chrono/libs/stopwatches: example perf test
From: vicente.botet_at_[hidden]
Date: 2011-02-11 17:11:01


Author: viboes
Date: 2011-02-11 17:10:57 EST (Fri, 11 Feb 2011)
New Revision: 68790
URL: http://svn.boost.org/trac/boost/changeset/68790

Log:
Stopwatches: Cleanup
Text files modified:
   sandbox/chrono/libs/stopwatches/example/loop_stopclock_accumulator_example.cpp | 7 ++-----
   sandbox/chrono/libs/stopwatches/example/nested_stopclock_accumulator_example.cpp | 7 ++-----
   sandbox/chrono/libs/stopwatches/example/scoped_stopclock_example.cpp | 7 ++-----
   sandbox/chrono/libs/stopwatches/example/scoped_stopwatch_example.cpp | 9 +++------
   sandbox/chrono/libs/stopwatches/example/sleep_for.hpp | 7 +++++++
   sandbox/chrono/libs/stopwatches/example/specific_stopwatch_accumulator_example.cpp | 9 +++------
   sandbox/chrono/libs/stopwatches/example/stopclock_accumulator_example.cpp | 7 ++-----
   sandbox/chrono/libs/stopwatches/example/stopclock_example.cpp | 7 ++-----
   sandbox/chrono/libs/stopwatches/example/stopwatch_accumulator_example.cpp | 5 +----
   sandbox/chrono/libs/stopwatches/example/stopwatch_example.cpp | 9 +++------
   sandbox/chrono/libs/stopwatches/example/suspendible_stopclock_example.cpp | 9 +++------
   sandbox/chrono/libs/stopwatches/example/t24_hours_example.cpp | 7 ++-----
   sandbox/chrono/libs/stopwatches/example/timex.cpp | 6 ++----
   sandbox/chrono/libs/stopwatches/perf/stopclock_perf.cpp | 7 ++-----
   sandbox/chrono/libs/stopwatches/test/stopclock_constructor_overload_test.cpp | 7 ++-----
   sandbox/chrono/libs/stopwatches/test/test_minmax.cpp | 7 ++-----
   sandbox/chrono/libs/stopwatches/test/wstopclock_constructor_overload_test.cpp | 7 ++-----
   17 files changed, 42 insertions(+), 82 deletions(-)

Modified: sandbox/chrono/libs/stopwatches/example/loop_stopclock_accumulator_example.cpp
==============================================================================
--- sandbox/chrono/libs/stopwatches/example/loop_stopclock_accumulator_example.cpp (original)
+++ sandbox/chrono/libs/stopwatches/example/loop_stopclock_accumulator_example.cpp 2011-02-11 17:10:57 EST (Fri, 11 Feb 2011)
@@ -1,11 +1,8 @@
 // stopwatch_accumulator_example.cpp ---------------------------------------------------//
-
-// Copyright 2009 Vicente J. Botet Escriba
-
+// Copyright 2009-2011 Vicente J. Botet Escriba
 // Distributed under the Boost Software License, Version 1.0.
 // See http://www.boost.org/LICENSE_1_0.txt
-
-// See http://www.boost.org/libs/chrono for documentation.
+// See http://www.boost.org/libs/stopwatches for documentation.
 
 //#include <boost/chrono/stopclock_accumulator.hpp>
 #include <boost/stopwatches/stopwatches.hpp>

Modified: sandbox/chrono/libs/stopwatches/example/nested_stopclock_accumulator_example.cpp
==============================================================================
--- sandbox/chrono/libs/stopwatches/example/nested_stopclock_accumulator_example.cpp (original)
+++ sandbox/chrono/libs/stopwatches/example/nested_stopclock_accumulator_example.cpp 2011-02-11 17:10:57 EST (Fri, 11 Feb 2011)
@@ -1,11 +1,8 @@
 // stopwatch_accumulator_example.cpp ---------------------------------------------------//
-
-// Copyright 2009 Vicente J. Botet Escriba
-
+// Copyright 2009-2011 Vicente J. Botet Escriba
 // Distributed under the Boost Software License, Version 1.0.
 // See http://www.boost.org/LICENSE_1_0.txt
-
-// See http://www.boost.org/libs/chrono for documentation.
+// See http://www.boost.org/libs/stopwatches for documentation.
 
 #include <boost/stopwatches.hpp>
 #include <cmath>

Modified: sandbox/chrono/libs/stopwatches/example/scoped_stopclock_example.cpp
==============================================================================
--- sandbox/chrono/libs/stopwatches/example/scoped_stopclock_example.cpp (original)
+++ sandbox/chrono/libs/stopwatches/example/scoped_stopclock_example.cpp 2011-02-11 17:10:57 EST (Fri, 11 Feb 2011)
@@ -1,11 +1,8 @@
 // stopclock_example.cpp ---------------------------------------------------//
-
-// Copyright 2009/2010 Vicente J. Botet Escriba
-
+// Copyright 2009-2011 Vicente J. Botet Escriba
 // Distributed under the Boost Software License, Version 1.0.
 // See http://www.boost.org/LICENSE_1_0.txt
-
-// See http://www.boost.org/libs/chrono for documentation.
+// See http://www.boost.org/libs/stopwatches for documentation.
 
 #include <boost/stopwatches/stopwatches.hpp>
 #include <cmath>

Modified: sandbox/chrono/libs/stopwatches/example/scoped_stopwatch_example.cpp
==============================================================================
--- sandbox/chrono/libs/stopwatches/example/scoped_stopwatch_example.cpp (original)
+++ sandbox/chrono/libs/stopwatches/example/scoped_stopwatch_example.cpp 2011-02-11 17:10:57 EST (Fri, 11 Feb 2011)
@@ -1,11 +1,8 @@
-// stopwatch_example.cpp ---------------------------------------------------//
-
-// Copyright 2009/2010 Vicente J. Botet Escriba
-
+// example/scoped_stopwatch_example.cpp ---------------------------------------------------//
+// Copyright 2009/2011 Vicente J. Botet Escriba
 // Distributed under the Boost Software License, Version 1.0.
 // See http://www.boost.org/LICENSE_1_0.txt
-
-// See http://www.boost.org/libs/chrono for documentation.
+// See http://www.boost.org/libs/stopwatches for documentation.
 
 #include <boost/stopwatches/stopwatches.hpp>
 #include <cmath>

Modified: sandbox/chrono/libs/stopwatches/example/sleep_for.hpp
==============================================================================
--- sandbox/chrono/libs/stopwatches/example/sleep_for.hpp (original)
+++ sandbox/chrono/libs/stopwatches/example/sleep_for.hpp 2011-02-11 17:10:57 EST (Fri, 11 Feb 2011)
@@ -1,3 +1,10 @@
+// example/sleep_for.hpp -----------------------------------------------------------//
+
+// Copyright 2009-2011 Vicente J. Botet Escriba
+// Distributed under the Boost Software License, Version 1.0.
+// See http://www.boost.org/LICENSE_1_0.txt
+// See http://www.boost.org/libs/stopwatches for documentation.
+
 #ifndef BOOST_CHRONO_SLEEP_FOR__HPP
 #define BOOST_CHRONO_SLEEP_FOR__HPP
 

Modified: sandbox/chrono/libs/stopwatches/example/specific_stopwatch_accumulator_example.cpp
==============================================================================
--- sandbox/chrono/libs/stopwatches/example/specific_stopwatch_accumulator_example.cpp (original)
+++ sandbox/chrono/libs/stopwatches/example/specific_stopwatch_accumulator_example.cpp 2011-02-11 17:10:57 EST (Fri, 11 Feb 2011)
@@ -1,11 +1,8 @@
-// stopwatch_accumulator_example.cpp ---------------------------------------------------//
-
-// Copyright 2009/2010 Vicente J. Botet Escriba
-
+// example/stopwatch_accumulator_example.cpp ---------------------------------------------------//
+// Copyright 2009/2011 Vicente J. Botet Escriba
 // Distributed under the Boost Software License, Version 1.0.
 // See http://www.boost.org/LICENSE_1_0.txt
-
-// See http://www.boost.org/libs/chrono for documentation.
+// See http://www.boost.org/libs/stopwatches for documentation.
 
 #include <boost/stopwatches/stopwatches.hpp>
 #include <cmath>

Modified: sandbox/chrono/libs/stopwatches/example/stopclock_accumulator_example.cpp
==============================================================================
--- sandbox/chrono/libs/stopwatches/example/stopclock_accumulator_example.cpp (original)
+++ sandbox/chrono/libs/stopwatches/example/stopclock_accumulator_example.cpp 2011-02-11 17:10:57 EST (Fri, 11 Feb 2011)
@@ -1,11 +1,8 @@
 // stopwatch_accumulator_example.cpp ---------------------------------------------------//
-
-// Copyright 2009 Vicente J. Botet Escriba
-
+// Copyright 2009-2011 Vicente J. Botet Escriba
 // Distributed under the Boost Software License, Version 1.0.
 // See http://www.boost.org/LICENSE_1_0.txt
-
-// See http://www.boost.org/libs/chrono for documentation.
+// See http://www.boost.org/libs/stopwatches for documentation.
 
 #include <boost/stopwatches/stopclock_accumulator.hpp>
 

Modified: sandbox/chrono/libs/stopwatches/example/stopclock_example.cpp
==============================================================================
--- sandbox/chrono/libs/stopwatches/example/stopclock_example.cpp (original)
+++ sandbox/chrono/libs/stopwatches/example/stopclock_example.cpp 2011-02-11 17:10:57 EST (Fri, 11 Feb 2011)
@@ -1,11 +1,8 @@
 // stopclock_example.cpp ---------------------------------------------------//
-
-// Copyright 2009 Vicente J. Botet Escriba
-
+// Copyright 2009-2011 Vicente J. Botet Escriba
 // Distributed under the Boost Software License, Version 1.0.
 // See http://www.boost.org/LICENSE_1_0.txt
-
-// See http://www.boost.org/libs/chrono for documentation.
+// See http://www.boost.org/libs/stopwatches for documentation.
 
 #include <boost/stopwatches/stopclock.hpp>
 #include <cmath>

Modified: sandbox/chrono/libs/stopwatches/example/stopwatch_accumulator_example.cpp
==============================================================================
--- sandbox/chrono/libs/stopwatches/example/stopwatch_accumulator_example.cpp (original)
+++ sandbox/chrono/libs/stopwatches/example/stopwatch_accumulator_example.cpp 2011-02-11 17:10:57 EST (Fri, 11 Feb 2011)
@@ -1,10 +1,7 @@
 // stopwatch_accumulator_example.cpp ---------------------------------------------------//
-
-// Copyright 2009/2010 Vicente J. Botet Escriba
-
+// Copyright 2009-2011 Vicente J. Botet Escriba
 // Distributed under the Boost Software License, Version 1.0.
 // See http://www.boost.org/LICENSE_1_0.txt
-
 // See http://www.boost.org/libs/chrono for documentation.
 
 #include <boost/stopwatches/stopwatches.hpp>

Modified: sandbox/chrono/libs/stopwatches/example/stopwatch_example.cpp
==============================================================================
--- sandbox/chrono/libs/stopwatches/example/stopwatch_example.cpp (original)
+++ sandbox/chrono/libs/stopwatches/example/stopwatch_example.cpp 2011-02-11 17:10:57 EST (Fri, 11 Feb 2011)
@@ -1,12 +1,9 @@
-// stopwatch_example.cpp ---------------------------------------------------//
-
+// example/stopwatch_example.cpp ---------------------------------------------------//
 // Copyright Beman Dawes 2006, 2008
-// Copyright 2009/2010 Vicente J. Botet Escriba
-
+// Copyright 2009-2011 Vicente J. Botet Escriba
 // Distributed under the Boost Software License, Version 1.0.
 // See http://www.boost.org/LICENSE_1_0.txt
-
-// See http://www.boost.org/libs/chrono for documentation.
+// See http://www.boost.org/libs/stopwatches for documentation.
 
 #include <iostream>
 #include <boost/stopwatches/stopwatches.hpp>

Modified: sandbox/chrono/libs/stopwatches/example/suspendible_stopclock_example.cpp
==============================================================================
--- sandbox/chrono/libs/stopwatches/example/suspendible_stopclock_example.cpp (original)
+++ sandbox/chrono/libs/stopwatches/example/suspendible_stopclock_example.cpp 2011-02-11 17:10:57 EST (Fri, 11 Feb 2011)
@@ -1,11 +1,8 @@
-// stopclock_example.cpp ---------------------------------------------------//
-
-// Copyright 2009 Vicente J. Botet Escriba
-
+// suspendible_stopclock_example.cpp ---------------------------------------------------//
+// Copyright 2009-2011 Vicente J. Botet Escriba
 // Distributed under the Boost Software License, Version 1.0.
 // See http://www.boost.org/LICENSE_1_0.txt
-
-// See http://www.boost.org/libs/chrono for documentation.
+// See http://www.boost.org/libs/stopwatches for documentation.
 
 #include <boost/thread.hpp>
 #include <boost/stopwatches/stopclock.hpp>

Modified: sandbox/chrono/libs/stopwatches/example/t24_hours_example.cpp
==============================================================================
--- sandbox/chrono/libs/stopwatches/example/t24_hours_example.cpp (original)
+++ sandbox/chrono/libs/stopwatches/example/t24_hours_example.cpp 2011-02-11 17:10:57 EST (Fri, 11 Feb 2011)
@@ -1,12 +1,9 @@
 // t24_hours_example.cpp ---------------------------------------------------//
-
 // Copyright Beman Dawes 2006, 2008
-// Copyright 2009 Vicente J. Botet Escriba
-
+// Copyright 2009-2011 Vicente J. Botet Escriba
 // Distributed under the Boost Software License, Version 1.0.
 // See http://www.boost.org/LICENSE_1_0.txt
-
-// See http://www.boost.org/libs/chrono for documentation.
+// See http://www.boost.org/libs/stopwatches for documentation.
 
 #include <boost/stopwatches/stopwatch.hpp>
 #include <boost/stopwatches/stopwatch_reporter.hpp>

Modified: sandbox/chrono/libs/stopwatches/example/timex.cpp
==============================================================================
--- sandbox/chrono/libs/stopwatches/example/timex.cpp (original)
+++ sandbox/chrono/libs/stopwatches/example/timex.cpp 2011-02-11 17:10:57 EST (Fri, 11 Feb 2011)
@@ -1,11 +1,9 @@
 // timex: timed execution program ------------------------------------------//
-
 // Copyright Beman Dawes 2007
-
+// Copyright 2009-2011 Vicente J. Botet Escriba
 // Distributed under the Boost Software License, Version 1.0. (See accompanying
 // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
-
-// See http://www.boost.org/libs/system for documentation.
+// See http://www.boost.org/libs/stopwatches for documentation.
 
 #include <boost/stopwatches/stopclock.hpp>
 #include <cstdlib>

Modified: sandbox/chrono/libs/stopwatches/perf/stopclock_perf.cpp
==============================================================================
--- sandbox/chrono/libs/stopwatches/perf/stopclock_perf.cpp (original)
+++ sandbox/chrono/libs/stopwatches/perf/stopclock_perf.cpp 2011-02-11 17:10:57 EST (Fri, 11 Feb 2011)
@@ -1,11 +1,8 @@
 // stopclock_perf.cpp ---------------------------------------------------//
-
-// Copyright 2009 Vicente J. Botet Escriba
-
+// Copyright 2009-2011 Vicente J. Botet Escriba
 // Distributed under the Boost Software License, Version 1.0.
 // See http://www.boost.org/LICENSE_1_0.txt
-
-// See http://www.boost.org/libs/chrono for documentation.
+// See http://www.boost.org/libs/stopwatches for documentation.
 
 #include <boost/thread.hpp>
 #include <boost/chrono/stopclock.hpp>

Modified: sandbox/chrono/libs/stopwatches/test/stopclock_constructor_overload_test.cpp
==============================================================================
--- sandbox/chrono/libs/stopwatches/test/stopclock_constructor_overload_test.cpp (original)
+++ sandbox/chrono/libs/stopwatches/test/stopclock_constructor_overload_test.cpp 2011-02-11 17:10:57 EST (Fri, 11 Feb 2011)
@@ -1,11 +1,8 @@
-// boost stopclock_constructor_overload_test.cpp -----------------------------------------------------//
-
+// tes/stopclock_constructor_overload_test.cpp -----------------------------------------------------//
 // Copyright Beman Dawes 2006, 2008
-// Copyright 2009 Vicente J. Botet Escriba
-
+// Copyright 2009-2011 Vicente J. Botet Escriba
 // Distributed under the Boost Software License, Version 1.0.
 // See http://www.boost.org/LICENSE_1_0.txt
-
 // See http://www.boost.org/libs/chrono for documentation.
 
 #include <boost/stopwatches/stopclock.hpp>

Modified: sandbox/chrono/libs/stopwatches/test/test_minmax.cpp
==============================================================================
--- sandbox/chrono/libs/stopwatches/test/test_minmax.cpp (original)
+++ sandbox/chrono/libs/stopwatches/test/test_minmax.cpp 2011-02-11 17:10:57 EST (Fri, 11 Feb 2011)
@@ -1,11 +1,8 @@
-// test_duration.cpp ----------------------------------------------------------//
-
-// Copyright 2009 Vicente J. Botet Escriba
-
+// test_minmax.cpp ----------------------------------------------------------//
+// Copyright 2011 Vicente J. Botet Escriba
 // Distributed under the Boost Software License, Version 1.0.
 // See http://www.boost.org/LICENSE_1_0.txt
 
-
 #if !defined(__GNUC__)
 
 #define min(A,B) ((A)<(B)?(A):(B))

Modified: sandbox/chrono/libs/stopwatches/test/wstopclock_constructor_overload_test.cpp
==============================================================================
--- sandbox/chrono/libs/stopwatches/test/wstopclock_constructor_overload_test.cpp (original)
+++ sandbox/chrono/libs/stopwatches/test/wstopclock_constructor_overload_test.cpp 2011-02-11 17:10:57 EST (Fri, 11 Feb 2011)
@@ -1,12 +1,9 @@
-// boost run_timer_test.cpp -----------------------------------------------------//
-
+// test/wstopclock_constructor_overload_test.cpp -----------------------------------------------------//
 // Copyright Beman Dawes 2006, 2008
-// Copyright 2009 Vicente J. Botet Escriba
+// Copyright 2009-2011 Vicente J. Botet Escriba
 // Copyright 2010 Tan Zhi(Tom)
-
 // Distributed under the Boost Software License, Version 1.0.
 // See http://www.boost.org/LICENSE_1_0.txt
-
 // See http://www.boost.org/libs/chrono for documentation.
 
 #include <boost/stopwatches/stopclock.hpp>


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