$include_dir="/home/hyper-archives/boost-commit/include"; include("$include_dir/msg-header.inc") ?>
Subject: [Boost-commit] svn:boost r74553 - trunk/libs/chrono/test/stopwatch
From: vicente.botet_at_[hidden]
Date: 2011-09-24 12:12:53
Author: viboes
Date: 2011-09-24 12:12:52 EDT (Sat, 24 Sep 2011)
New Revision: 74553
URL: http://svn.boost.org/trac/boost/changeset/74553
Log:
Chrono: Use elapsed_formatter when forcing format
Text files modified: 
   trunk/libs/chrono/test/stopwatch/simple_lightweight_stopwatch_reporter_pass.cpp |     7 ++++---                                 
   trunk/libs/chrono/test/stopwatch/simple_stopwatch_reporter_pass.cpp             |     5 +++--                                   
   2 files changed, 7 insertions(+), 5 deletions(-)
Modified: trunk/libs/chrono/test/stopwatch/simple_lightweight_stopwatch_reporter_pass.cpp
==============================================================================
--- trunk/libs/chrono/test/stopwatch/simple_lightweight_stopwatch_reporter_pass.cpp	(original)
+++ trunk/libs/chrono/test/stopwatch/simple_lightweight_stopwatch_reporter_pass.cpp	2011-09-24 12:12:52 EDT (Sat, 24 Sep 2011)
@@ -122,12 +122,13 @@
 void check_file_line()
 {
   typedef simple_stopwatch<Clock> Stopwatch;
-  typedef typename stopwatch_reporter_default_formatter<Stopwatch>::type Formatter;
-  typedef lightweight_stopwatch_reporter<Stopwatch> Reporter;
+  typedef elapsed_formatter Formatter;
+  typedef lightweight_stopwatch_reporter<Stopwatch,Formatter> Reporter;
   static Formatter fmtr("%1%[%2%] Elapsed time: %3%\n");
   fmtr % __FILE__ % __LINE__;
 
   Reporter _(fmtr);
+  ex::sleep_for(milliseconds(100));
 }
 
 template <typename Clock>
@@ -139,7 +140,7 @@
   check_constructor_throws<Clock>();
   check_elapsed<Clock>(check);
   check_report<Clock>();
-  //check_file_line<Clock>();
+  check_file_line<Clock>();
 }
 
 int main()
Modified: trunk/libs/chrono/test/stopwatch/simple_stopwatch_reporter_pass.cpp
==============================================================================
--- trunk/libs/chrono/test/stopwatch/simple_stopwatch_reporter_pass.cpp	(original)
+++ trunk/libs/chrono/test/stopwatch/simple_stopwatch_reporter_pass.cpp	2011-09-24 12:12:52 EDT (Sat, 24 Sep 2011)
@@ -78,9 +78,10 @@
 template <typename Clock>
 void check_file_line()
 {
-  typedef stopwatch_reporter<simple_stopwatch<Clock> > Reporter;
+  typedef stopwatch_reporter<simple_stopwatch<Clock>, elapsed_formatter > Reporter;
   Reporter _("%1%\n");
   file_line fl(__FILE__, __LINE__);
+  ex::sleep_for(milliseconds(100));
 
 }
 
@@ -131,7 +132,7 @@
   check_constructor_throws<Clock>();
   check_elapsed<Clock>(check);
   check_report<Clock>();
-  //check_file_line<Clock>();
+  check_file_line<Clock>();
 }
 
 int main()