|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r65240 - in sandbox/chrono/libs/stopwatches/doc: . html html/boost_stopwatches html/boost_stopwatches/appendices html/boost_stopwatches/examples html/boost_stopwatches/overview html/boost_stopwatches/reference html/boost_stopwatches/users_guide
From: vicente.botet_at_[hidden]
Date: 2010-09-04 08:20:01
Author: viboes
Date: 2010-09-04 08:19:57 EDT (Sat, 04 Sep 2010)
New Revision: 65240
URL: http://svn.boost.org/trac/boost/changeset/65240
Log:
update doc
Added:
sandbox/chrono/libs/stopwatches/doc/html/boost_stopwatches/users_guide/examples.html (contents, props changed)
Text files modified:
sandbox/chrono/libs/stopwatches/doc/html/boost_stopwatches/appendices.html | 1
sandbox/chrono/libs/stopwatches/doc/html/boost_stopwatches/appendices/faq.html | 14
sandbox/chrono/libs/stopwatches/doc/html/boost_stopwatches/appendices/history.html | 34 +++-
sandbox/chrono/libs/stopwatches/doc/html/boost_stopwatches/appendices/perf.html | 4
sandbox/chrono/libs/stopwatches/doc/html/boost_stopwatches/appendices/rationale.html | 80 ++++++++++
sandbox/chrono/libs/stopwatches/doc/html/boost_stopwatches/appendices/todo.html | 2
sandbox/chrono/libs/stopwatches/doc/html/boost_stopwatches/examples/reporting.html | 12
sandbox/chrono/libs/stopwatches/doc/html/boost_stopwatches/overview.html | 2
sandbox/chrono/libs/stopwatches/doc/html/boost_stopwatches/overview/description.html | 3
sandbox/chrono/libs/stopwatches/doc/html/boost_stopwatches/overview/motivation.html | 42 ++++
sandbox/chrono/libs/stopwatches/doc/html/boost_stopwatches/reference.html | 36 ++--
sandbox/chrono/libs/stopwatches/doc/html/boost_stopwatches/reference/formatters.html | 48 +++---
sandbox/chrono/libs/stopwatches/doc/html/boost_stopwatches/reference/reporters.html | 82 +++++-----
sandbox/chrono/libs/stopwatches/doc/html/boost_stopwatches/reference/stopwatches.html | 80 +++++-----
sandbox/chrono/libs/stopwatches/doc/html/boost_stopwatches/users_guide.html | 2
sandbox/chrono/libs/stopwatches/doc/html/boost_stopwatches/users_guide/getting_started.html | 53 ++++--
sandbox/chrono/libs/stopwatches/doc/html/boost_stopwatches/users_guide/tutorial.html | 37 ++--
sandbox/chrono/libs/stopwatches/doc/html/index.html | 5
sandbox/chrono/libs/stopwatches/doc/html/standalone_HTML.manifest | 3
sandbox/chrono/libs/stopwatches/doc/stopwatches.qbk | 291 +++++++++++++++++++++++----------------
20 files changed, 509 insertions(+), 322 deletions(-)
Modified: sandbox/chrono/libs/stopwatches/doc/html/boost_stopwatches/appendices.html
==============================================================================
--- sandbox/chrono/libs/stopwatches/doc/html/boost_stopwatches/appendices.html (original)
+++ sandbox/chrono/libs/stopwatches/doc/html/boost_stopwatches/appendices.html 2010-09-04 08:19:57 EDT (Sat, 04 Sep 2010)
@@ -30,6 +30,7 @@
<dt><span class="section"> Appendix A: History</span></dt>
<dd><dl>
<dt><span class="section">Version 0.5.0, September 10, 2010 </span></dt>
+<dt><span class="section">Version 0.4.7, September 1, 2010 </span></dt>
<dt><span class="section">Version 0.4.6, August 28, 2010 </span></dt>
<dt><span class="section"><a href="appendices/history.html#boost_stopwatches.appendices.history.__version_0_4_5__july_6__2010____documentation_update_"><span class="bold"><strong>Version 0.4.5, July 6, 2010</strong></span> <span class="emphasis"><em>Documentation
update</em></span></a></span></dt>
Modified: sandbox/chrono/libs/stopwatches/doc/html/boost_stopwatches/appendices/faq.html
==============================================================================
--- sandbox/chrono/libs/stopwatches/doc/html/boost_stopwatches/appendices/faq.html (original)
+++ sandbox/chrono/libs/stopwatches/doc/html/boost_stopwatches/appendices/faq.html 2010-09-04 08:19:57 EDT (Sat, 04 Sep 2010)
@@ -29,7 +29,7 @@
<a name="boost_stopwatches.appendices.faq"></a> Appendix D: FAQ
</h3></div></div></div>
<a name="boost_stopwatches.appendices.faq.why_does_stopwatch_reporter_only_display_millisecond_place_precision_when_the_underlying_clock_has_nanosecond_precision_"></a><h4>
-<a name="id5048192"></a>
+<a name="id5048911"></a>
<a href="faq.html#boost_stopwatches.appendices.faq.why_does_stopwatch_reporter_only_display_millisecond_place_precision_when_the_underlying_clock_has_nanosecond_precision_">Why
does stopwatch_reporter only display millisecond place precision when the
underlying Clock has nanosecond precision?</a>
@@ -40,7 +40,7 @@
dangerously.
</p>
<a name="boost_stopwatches.appendices.faq.why_does_stopwatch_reporter_sometimes_report_more_cpu_seconds_than_real_seconds_"></a><h4>
-<a name="id5048232"></a>
+<a name="id5048952"></a>
<a href="faq.html#boost_stopwatches.appendices.faq.why_does_stopwatch_reporter_sometimes_report_more_cpu_seconds_than_real_seconds_">Why
does stopwatch_reporter sometimes report more cpu seconds than real seconds?</a>
</h4>
@@ -50,17 +50,17 @@
be reporting at times.
</p>
<a name="boost_stopwatches.appendices.faq.can_i_obtain_statistics_of_the_time_elapsed_between_calls_to_a_function_"></a><h4>
-<a name="id5048265"></a>
+<a name="id5048984"></a>
<a href="faq.html#boost_stopwatches.appendices.faq.can_i_obtain_statistics_of_the_time_elapsed_between_calls_to_a_function_">Can
I obtain statistics of the time elapsed between calls to a function?</a>
</h4>
<p>
The library do not provides this feature.
</p>
-<a name="boost_stopwatches.appendices.faq.what_happens_if_i_press_ctrl_c_and_program_terminates__what_log_would_boost_chrono_output_"></a><h4>
-<a name="id5048293"></a>
- <a href="faq.html#boost_stopwatches.appendices.faq.what_happens_if_i_press_ctrl_c_and_program_terminates__what_log_would_boost_chrono_output_">What
- happens if I press Ctrl+C and program terminates? What log would Boost.chrono
+<a name="boost_stopwatches.appendices.faq.what_happens_if_i_press_ctrl_c_and_program_terminates__what_log_would_boost_stopwatches_output_"></a><h4>
+<a name="id5049012"></a>
+ <a href="faq.html#boost_stopwatches.appendices.faq.what_happens_if_i_press_ctrl_c_and_program_terminates__what_log_would_boost_stopwatches_output_">What
+ happens if I press Ctrl+C and program terminates? What log would Boost.Stopwatches
output?</a>
</h4>
</div>
Modified: sandbox/chrono/libs/stopwatches/doc/html/boost_stopwatches/appendices/history.html
==============================================================================
--- sandbox/chrono/libs/stopwatches/doc/html/boost_stopwatches/appendices/history.html (original)
+++ sandbox/chrono/libs/stopwatches/doc/html/boost_stopwatches/appendices/history.html 2010-09-04 08:19:57 EDT (Sat, 04 Sep 2010)
@@ -29,6 +29,7 @@
</h3></div></div></div>
<div class="toc"><dl>
<dt><span class="section">Version 0.5.0, September 10, 2010 </span></dt>
+<dt><span class="section">Version 0.4.7, September 1, 2010 </span></dt>
<dt><span class="section">Version 0.4.6, August 28, 2010 </span></dt>
<dt><span class="section"><a href="history.html#boost_stopwatches.appendices.history.__version_0_4_5__july_6__2010____documentation_update_"><span class="bold"><strong>Version 0.4.5, July 6, 2010</strong></span> <span class="emphasis"><em>Documentation
update</em></span></a></span></dt>
@@ -66,6 +67,17 @@
</div>
<div class="section" lang="en">
<div class="titlepage"><div><div><h4 class="title">
+<a name="boost_stopwatches.appendices.history.__version_0_4_7__september_1__2010__"></a>Version 0.4.7, September 1, 2010
+</h4></div></div></div>
+<p>
+ <span class="bold"><strong>New Features:</strong></span>
+ </p>
+<div class="itemizedlist"><ul type="disc"><li>
+ Added __lightweight<span class="underline">stopwatch</span>_.
+ </li></ul></div>
+</div>
+<div class="section" lang="en">
+<div class="titlepage"><div><div><h4 class="title">
<a name="boost_stopwatches.appendices.history.__version_0_4_6__august_28__2010__"></a>Version 0.4.6, August 28, 2010
</h4></div></div></div>
<p>
@@ -120,10 +132,12 @@
Overview rewriting
</li>
<li>
- Added missing thread_clock
reference.
+ Added missing <code class="computeroutput"><span class="identifier">thread_clock</span></code>
+ reference.
</li>
<li>
- How to implement a thread_clock
tutorial removed.
+ How to implement a <code class="computeroutput"><span class="identifier">thread_clock</span></code>
+ tutorial removed.
</li>
<li>
References section renamed to External Resources.
@@ -211,8 +225,8 @@
</p>
<div class="itemizedlist"><ul type="disc">
<li>
- Added thread_clock
implementation
- on Windows.
+ Added <code class="computeroutput"><span class="identifier">thread_clock</span></code>
+ implementation on Windows.
</li>
<li>
Added <span class="bold"><strong>Boost.Thread</strong></span> using <span class="bold"><strong>Boost.Chrono</strong></span>.
@@ -230,18 +244,18 @@
</p>
<div class="itemizedlist"><ul type="disc">
<li>
- SuspendibleClock
concept +
- template class _suspendible<span class="underline">clock</span>_.
+ <code class="computeroutput"><span class="identifier">SuspendibleClock</span></code> concept
+ + template class _suspendible<span class="underline">clock</span>_.
</li>
<li>
Added <code class="computeroutput"><span class="identifier">scope_suspend</span></code>
which do <code class="computeroutput"><span class="identifier">suspend</span></code>/<code class="computeroutput"><span class="identifier">resume</span></code> if the <code class="computeroutput"><span class="identifier">Clock</span></code>
- is a model of SuspendibleClock
concept,
- and nothing otherwise.
+ is a model of <code class="computeroutput"><span class="identifier">SuspendibleClock</span></code>
+ concept, and nothing otherwise.
</li>
<li>
- thread_clock
support on platforms
- providing it natively.
+ <code class="computeroutput"><span class="identifier">thread_clock</span></code> support
+ on platforms providing it natively.
</li>
<li>
Added support for wide character for <a href="../reference/reporters.html#boost_stopwatches.reference.reporters.stopwatch_reporter_hpp.stopwatch_reporter" title="
Modified: sandbox/chrono/libs/stopwatches/doc/html/boost_stopwatches/appendices/perf.html
==============================================================================
--- sandbox/chrono/libs/stopwatches/doc/html/boost_stopwatches/appendices/perf.html (original)
+++ sandbox/chrono/libs/stopwatches/doc/html/boost_stopwatches/appendices/perf.html 2010-09-04 08:19:57 EDT (Sat, 04 Sep 2010)
@@ -70,7 +70,7 @@
with a variable lifetime.
</p>
<a name="boost_stopwatches.appendices.perf.single_threaded_recursive_function"></a><h4>
-<a name="id5050823"></a>
+<a name="id5051544"></a>
<a href="perf.html#boost_stopwatches.appendices.perf.single_threaded_recursive_function">Single-Threaded
Recursive function</a>
</h4>
@@ -93,7 +93,7 @@
and thread_clock.
</p>
<a name="boost_stopwatches.appendices.perf.multi_threaded_recursive_function"></a><h4>
-<a name="id5050872"></a>
+<a name="id5051593"></a>
<a href="perf.html#boost_stopwatches.appendices.perf.multi_threaded_recursive_function">Multi-Threaded
Recursive function</a>
</h4>
Modified: sandbox/chrono/libs/stopwatches/doc/html/boost_stopwatches/appendices/rationale.html
==============================================================================
--- sandbox/chrono/libs/stopwatches/doc/html/boost_stopwatches/appendices/rationale.html (original)
+++ sandbox/chrono/libs/stopwatches/doc/html/boost_stopwatches/appendices/rationale.html 2010-09-04 08:19:57 EDT (Sat, 04 Sep 2010)
@@ -24,11 +24,87 @@
<div class="spirit-nav">
<a accesskey="p" href="history.html"><img src="../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../appendices.html"><img src="../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../index.html"><img src="../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="implementation.html"><img src="../../../../../../doc/src/images/next.png" alt="Next"></a>
</div>
-<div class="section" lang="en"><div class="titlepage"><div><div><h3 class="title">
+<div class="section" lang="en">
+<div class="titlepage"><div><div><h3 class="title">
<a name="boost_stopwatches.appendices.rationale"></a><a href="rationale.html" title=" Appendix B:
Rationale"> Appendix B:
Rationale</a>
-</h3></div></div></div></div>
+</h3></div></div></div>
+<a name="boost_stopwatches.appendices.rationale.how_reliable_are_these_measures_"></a><h4>
+<a name="id5048583"></a>
+ <a href="rationale.html#boost_stopwatches.appendices.rationale.how_reliable_are_these_measures_">How
+ reliable are these measures?</a>
+ </h4>
+<p>
+ There are three cases which can lead to get unreliable measures:
+ </p>
+<div class="itemizedlist"><ul type="disc"><li>
+ It is not possible to measure events that transpire at rates of the same
+ order of magnitude as the clock's precision with any reliability. For
+ example, a 10ms clock cannot be used reliably to measure elapsed times
+ of tens of milliseconds. The library provides a [high_resolution_clock]
+ that gives you the highest resolution time available on your platform.
+ That will give the best precision, but can only be used for reliable
+ measurement of events that elapse about an order of magnitude slower
+ than that clock's precision.
+ </li></ul></div>
+<p>
+
+</p>
+<pre class="programlisting"><span class="preprocessor">#include</span> <span class="special"><</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">chrono</span><span class="special">/</span><span class="identifier">chrono</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">></span>
+ <span class="special">...</span>
+ <a href="../reference/reporters.html#boost_stopwatches.reference.reporters.stopclock_hpp.stopclock" title="
+ Template Class stopclock<>"><code class="computeroutput"><span class="identifier">stopclock</span></code></a><span class="special"><</span> <code class="computeroutput"><span class="identifier">high_resolution_clock</span></code><span class="special">></span> <span class="identifier">_</span><span class="special">;</span>
+</pre>
+<p>
+ </p>
+<div class="itemizedlist"><ul type="disc">
+<li>
+ Using a process clock in a multithreaded application will give elapsed
+ time for the process as a whole, including threads other than the calling
+ thread. To get time elapsed for a specific thread, use the supplied
+ <code class="computeroutput"><span class="identifier">thread_clock</span></code> which returns
+ time elapsed for the calling thread only, if supported by the platform.
+ </li>
+<li>
+ When stopclocks are nested, usually from stopclocks appearing in each
+ of several nested function calls, the overhead of the stopclock processing
+ begins to be significant relative to run time of the code being measured.
+ The innermost measurements remain accurate, but those in the outermost
+ layers can measure too much overhead to be trustworthy.
+ </li>
+<li>
+ Nested stopclocks (usually nested function calls where each function
+ contains a stopclock). When the nesting is deep enough, the cumulative
+ overhead of all the stopclock functionality make the data unreliable
+ except for the inner-most trace points. The question is, how much time
+ is related to the application code we want to measure and how much to
+ the fact we are meassuring and logging in inner blocks?
+ </li>
+</ul></div>
+<p>
+ Most of the stopclock overhead is likely due to logging. There are two things
+ we can do to make the difference :
+ </p>
+<div class="itemizedlist"><ul type="disc">
+<li>
+ Don't flush log information while measuring elapsed time. A <a href="../reference/stopwatches.html#boost_stopwatches.reference.stopwatches.stopwatch_accumulator_hpp.stopwatch_accumulator" title="
+ Template Class stopwatch_accumulator<>"><code class="computeroutput"><span class="identifier">stopwatch_accumulator</span></code></a> can make
+ that possible, because it don't report until all the measures have been
+ compiled and then report some statistics. Alternatively, an asynchronous
+ stream would permit normal logging but by a thread other than the one
+ being measured.
+ </li>
+<li>
+ Add a mechanism to track the difference between the application time
+ and stopclock time. If a <code class="computeroutput"><span class="identifier">Clock</span></code>
+ models <code class="computeroutput"><span class="identifier">SuspendibleClock</span></code>
+ and its precision is sufficiently fine, this mechanism could suspend
+ the <code class="computeroutput"><span class="identifier">Clock</span></code>'s counting
+ while reporting measurements and resume it thereafter.
+ </li>
+</ul></div>
+</div>
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
<td align="left"></td>
<td align="right"><div class="copyright-footer">Copyright © 2009 -2010 Vicente J. Botet Escriba<p>
Modified: sandbox/chrono/libs/stopwatches/doc/html/boost_stopwatches/appendices/todo.html
==============================================================================
--- sandbox/chrono/libs/stopwatches/doc/html/boost_stopwatches/appendices/todo.html (original)
+++ sandbox/chrono/libs/stopwatches/doc/html/boost_stopwatches/appendices/todo.html 2010-09-04 08:19:57 EDT (Sat, 04 Sep 2010)
@@ -29,7 +29,7 @@
plans</a>
</h3></div></div></div>
<a name="boost_stopwatches.appendices.todo.tasks_to_do"></a><h4>
-<a name="id5050939"></a>
+<a name="id5051660"></a>
<a href="todo.html#boost_stopwatches.appendices.todo.tasks_to_do">Tasks to do</a>
</h4>
<div class="itemizedlist"><ul type="disc">
Modified: sandbox/chrono/libs/stopwatches/doc/html/boost_stopwatches/examples/reporting.html
==============================================================================
--- sandbox/chrono/libs/stopwatches/doc/html/boost_stopwatches/examples/reporting.html (original)
+++ sandbox/chrono/libs/stopwatches/doc/html/boost_stopwatches/examples/reporting.html 2010-09-04 08:19:57 EDT (Sat, 04 Sep 2010)
@@ -46,12 +46,12 @@
timing. When it is destroyed at the end of the program, its destructor
stops the time counting and displays timing information on cout.
</p>
-<pre class="programlisting"><span class="preprocessor">#include</span> <span class="special"><</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">chrono</span><span class="special">/</span><span class="identifier">stopclock</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">></span>
+<pre class="programlisting"><span class="preprocessor">#include</span> <span class="special"><</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">stopwatches</span><span class="special">/</span><span class="identifier">stopclock</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">></span>
<span class="preprocessor">#include</span> <span class="special"><</span><span class="identifier">cmath</span><span class="special">></span>
<span class="keyword">int</span> <span class="identifier">main</span><span class="special">()</span>
<span class="special">{</span>
- <span class="identifier">boost</span><span class="special">::</span><span class="identifier">chrono</span><span class="special">::</span><a href="../reference/reporters.html#boost_stopwatches.reference.reporters.stopclock_hpp.stopclock" title="
+ <span class="identifier">boost</span><span class="special">::</span><span class="identifier">stopwatches</span><span class="special">::</span><a href="../reference/reporters.html#boost_stopwatches.reference.reporters.stopclock_hpp.stopclock" title="
Template Class stopclock<>"><code class="computeroutput"><span class="identifier">stopclock</span></code></a><span class="special"><></span> <span class="identifier">t</span><span class="special">;</span>
<span class="keyword">for</span> <span class="special">(</span> <span class="keyword">long</span> <span class="identifier">i</span> <span class="special">=</span> <span class="number">0</span><span class="special">;</span> <span class="identifier">i</span> <span class="special"><</span> <span class="number">10000000</span><span class="special">;</span> <span class="special">++</span><span class="identifier">i</span> <span class="special">)</span>
@@ -83,7 +83,7 @@
The stopclock_example2.cpp program is the same, except that it supplies
additional constructor arguments from the command line:
</p>
-<pre class="programlisting"><span class="preprocessor">#include</span> <span class="special"><</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">chrono</span><span class="special">/</span><span class="identifier">stopclock</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">></span>
+<pre class="programlisting"><span class="preprocessor">#include</span> <span class="special"><</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">stopwatches</span><span class="special">/</span><span class="identifier">stopclock</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">></span>
<span class="preprocessor">#include</span> <span class="special"><</span><span class="identifier">cmath</span><span class="special">></span>
<span class="keyword">int</span> <span class="identifier">main</span><span class="special">(</span> <span class="keyword">int</span> <span class="identifier">argc</span><span class="special">,</span> <span class="keyword">char</span> <span class="special">*</span> <span class="identifier">argv</span><span class="special">[]</span> <span class="special">)</span>
@@ -91,7 +91,7 @@
<span class="keyword">const</span> <span class="keyword">char</span> <span class="special">*</span> <span class="identifier">format</span> <span class="special">=</span> <span class="identifier">argc</span> <span class="special">></span> <span class="number">1</span> <span class="special">?</span> <span class="identifier">argv</span><span class="special">[</span><span class="number">1</span><span class="special">]</span> <span class="special">:</span> <span class="string">"%t cpu seconds\n"</span><span class="special">;</span>
<span class="keyword">int</span> <span class="identifier">places</span> <span class="special">=</span> <span class="identifier">argc</span> <span class="special">></span> <span class="number">2</span> <span class="special">?</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">atoi</span><span class="special">(</span> <span class="identifier">argv</span><span class="special">[</span><span class="number">2</span><span class="special">]</span> <span class="special">)</span> <span class="special">:</span> <span class="number">2</span><span class="special">;</span>
- <span class="identifier">boost</span><span class="special">::</span><span class="identifier">chrono</span><span class="special">::</span><a href="../reference/reporters.html#boost_stopwatches.reference.reporters.stopclock_hpp.stopclock" title="
+ <span class="identifier">boost</span><span class="special">::</span><span class="identifier">stopwatches</span><span class="special">::</span><a href="../reference/reporters.html#boost_stopwatches.reference.reporters.stopclock_hpp.stopclock" title="
Template Class stopclock<>"><code class="computeroutput"><span class="identifier">stopclock</span></code></a><span class="special"><></span> <span class="identifier">t</span><span class="special">(</span> <span class="identifier">format</span><span class="special">,</span> <span class="identifier">places</span> <span class="special">);</span>
<span class="keyword">for</span> <span class="special">(</span> <span class="keyword">long</span> <span class="identifier">i</span> <span class="special">=</span> <span class="number">0</span><span class="special">;</span> <span class="identifier">i</span> <span class="special"><</span> <span class="number">10000000</span><span class="special">;</span> <span class="special">++</span><span class="identifier">i</span> <span class="special">)</span>
@@ -125,7 +125,7 @@
command">time
command</a>
</h4></div></div></div>
-<pre class="programlisting"><span class="preprocessor">#include</span> <span class="special"><</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">chrono</span><span class="special">/</span><span class="identifier">stopclock</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">></span>
+<pre class="programlisting"><span class="preprocessor">#include</span> <span class="special"><</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">stopwatches</span><span class="special">/</span><span class="identifier">stopclock</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">></span>
<span class="preprocessor">#include</span> <span class="special"><</span><span class="identifier">cstdlib</span><span class="special">></span>
<span class="preprocessor">#include</span> <span class="special"><</span><span class="identifier">string</span><span class="special">></span>
<span class="preprocessor">#include</span> <span class="special"><</span><span class="identifier">iostream</span><span class="special">></span>
@@ -159,7 +159,7 @@
<span class="keyword">if</span> <span class="special">(</span> <span class="identifier">verbose</span> <span class="special">)</span>
<span class="special">{</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">cout</span> <span class="special"><<</span> <span class="string">"command: \""</span> <span class="special"><<</span> <span class="identifier">s</span><span class="special">.</span><span class="identifier">c_str</span><span class="special">()</span> <span class="special"><<</span> <span class="string">"\"\n"</span><span class="special">;</span> <span class="special">}</span>
- <span class="identifier">boost</span><span class="special">::</span><span class="identifier">chrono</span><span class="special">::</span><a href="../reference/reporters.html#boost_stopwatches.reference.reporters.stopclock_hpp.stopclock" title="
+ <span class="identifier">boost</span><span class="special">::</span><span class="identifier">stopwatches</span><span class="special">::</span><a href="../reference/reporters.html#boost_stopwatches.reference.reporters.stopclock_hpp.stopclock" title="
Template Class stopclock<>"><code class="computeroutput"><span class="identifier">stopclock</span></code></a><span class="special"><></span> <span class="identifier">t</span><span class="special">;</span>
<span class="keyword">return</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">system</span><span class="special">(</span> <span class="identifier">s</span><span class="special">.</span><span class="identifier">c_str</span><span class="special">()</span> <span class="special">);</span>
Modified: sandbox/chrono/libs/stopwatches/doc/html/boost_stopwatches/overview.html
==============================================================================
--- sandbox/chrono/libs/stopwatches/doc/html/boost_stopwatches/overview.html (original)
+++ sandbox/chrono/libs/stopwatches/doc/html/boost_stopwatches/overview.html 2010-09-04 08:19:57 EDT (Sat, 04 Sep 2010)
@@ -31,7 +31,7 @@
<dt><span class="section">Description</span></dt>
</dl></div>
<a name="boost_stopwatches.overview.how_to_use_this_documentation"></a><h3>
-<a name="id4986976"></a>
+<a name="id4986969"></a>
<a href="overview.html#boost_stopwatches.overview.how_to_use_this_documentation">How
to Use This Documentation</a>
</h3>
Modified: sandbox/chrono/libs/stopwatches/doc/html/boost_stopwatches/overview/description.html
==============================================================================
--- sandbox/chrono/libs/stopwatches/doc/html/boost_stopwatches/overview/description.html (original)
+++ sandbox/chrono/libs/stopwatches/doc/html/boost_stopwatches/overview/description.html 2010-09-04 08:19:57 EDT (Sat, 04 Sep 2010)
@@ -27,8 +27,7 @@
<a name="boost_stopwatches.overview.description"></a>Description
</h3></div></div></div>
<p>
- Knowing how long a program takes to execute is useful in both test and production
- environments. On top of the standard facilities <span class="bold"><strong>Boost.Chrono</strong></span>
+ On top of the standard facilities of <span class="bold"><strong>Boost.Chrono</strong></span>,
<span class="bold"><strong>Boost.Stopwatches</strong></span> provides:
</p>
<div class="itemizedlist"><ul type="disc">
Modified: sandbox/chrono/libs/stopwatches/doc/html/boost_stopwatches/overview/motivation.html
==============================================================================
--- sandbox/chrono/libs/stopwatches/doc/html/boost_stopwatches/overview/motivation.html (original)
+++ sandbox/chrono/libs/stopwatches/doc/html/boost_stopwatches/overview/motivation.html 2010-09-04 08:19:57 EDT (Sat, 04 Sep 2010)
@@ -26,14 +26,14 @@
<div class="titlepage"><div><div><h3 class="title">
<a name="boost_stopwatches.overview.motivation"></a>Motivation
</h3></div></div></div>
-<a name="boost_stopwatches.overview.motivation.reporting_elapsed_time"></a><h4>
-<a name="id4948840"></a>
- <a href="motivation.html#boost_stopwatches.overview.motivation.reporting_elapsed_time">Reporting
+<a name="boost_stopwatches.overview.motivation.measuring_elapsed_time"></a><h4>
+<a name="id4948837"></a>
+ <a href="motivation.html#boost_stopwatches.overview.motivation.measuring_elapsed_time">Measuring
elapsed time</a>
</h4>
<p>
Knowing how long a program, a function or a specific code block takes to
- execute is useful in both test and production environments. <span class="bold"><strong>Boost.Chrono</strong></span>
+ execute is useful in both test and production environments. <span class="bold"><strong>Boost.Stopwatches</strong></span>
introduces the <a href="../reference/stopwatches.html#boost_stopwatches.reference.stopwatches.stopwatch_req" title="
Stopwatch Requirements"><code class="computeroutput"><span class="identifier">Stopwatch</span></code></a> concept which is a mechanism
to measure the elapsed time. A Stopwatch allows to start, stop, suspend and
@@ -42,6 +42,11 @@
is the basic model of <a href="../reference/stopwatches.html#boost_stopwatches.reference.stopwatches.stopwatch_req" title="
Stopwatch Requirements"><code class="computeroutput"><span class="identifier">Stopwatch</span></code></a>.
</p>
+<a name="boost_stopwatches.overview.motivation.reporting_elapsed_time"></a><h4>
+<a name="id4948927"></a>
+ <a href="motivation.html#boost_stopwatches.overview.motivation.reporting_elapsed_time">Reporting
+ elapsed time</a>
+ </h4>
<p>
It is often necessary to report elapsed time on a user display or in a log
file. <a href="../reference/reporters.html#boost_stopwatches.reference.reporters.stopwatch_reporter_hpp.stopwatch_reporter" title="
@@ -49,8 +54,33 @@
a runtime reporting mechanism for this purpose which can be invoked in just
one line of code.
</p>
+<pre class="programlisting"><span class="keyword">using</span> <span class="keyword">namespace</span> <span class="identifier">boost</span><span class="special">::</span><span class="identifier">chrono</span><span class="special">;</span>
+<span class="keyword">using</span> <span class="keyword">namespace</span> <span class="identifier">boost</span><span class="special">::</span><span class="identifier">stopwatches</span><span class="special">;</span>
+<span class="keyword">int</span> <span class="identifier">main</span><span class="special">()</span>
+<span class="special">{</span>
+ <span class="identifier">stopwatch_reporter</span><span class="special"><</span><span class="identifier">stopwatch</span><span class="special"><</span><span class="identifier">process_cpu_clock</span><span class="special">></span> <span class="special">></span> <span class="identifier">_</span><span class="special">;</span>
+ <span class="comment">// ...
+</span><span class="special">}</span>
+</pre>
+<p>
+ Will produce the following output
+ </p>
+<pre class="programlisting"><span class="identifier">real</span> <span class="number">0.034</span><span class="identifier">s</span><span class="special">,</span> <span class="identifier">cpu</span> <span class="number">0.031</span><span class="identifier">s</span> <span class="special">(</span><span class="number">93.0</span><span class="special">%),</span> <span class="identifier">user</span> <span class="number">0.031</span><span class="identifier">s</span><span class="special">,</span> <span class="identifier">system</span> <span class="number">0.000</span><span class="identifier">s</span>
+</pre>
+<p>
+ As this is one of the expression more commonly use, the library provides
+ a stopclock shortcut so the preceding can be writen as
+ </p>
+<pre class="programlisting"><span class="keyword">using</span> <span class="keyword">namespace</span> <span class="identifier">boost</span><span class="special">::</span><span class="identifier">stopwatches</span><span class="special">;</span>
+<span class="keyword">int</span> <span class="identifier">main</span><span class="special">()</span>
+<span class="special">{</span>
+ <a href="../reference/reporters.html#boost_stopwatches.reference.reporters.stopclock_hpp.stopclock" title="
+ Template Class stopclock<>"><code class="computeroutput"><span class="identifier">stopclock</span></code></a><span class="special"><></span> <span class="identifier">_</span><span class="special">;</span>
+ <span class="comment">// ...
+</span><span class="special">}</span>
+</pre>
<a name="boost_stopwatches.overview.motivation.how_reliable_are_these_measures_"></a><h4>
-<a name="id4948958"></a>
+<a name="id4949316"></a>
<a href="motivation.html#boost_stopwatches.overview.motivation.how_reliable_are_these_measures_">How
reliable are these measures?</a>
</h4>
@@ -62,7 +92,7 @@
two ways to improve reliability of time measurements. A <a href="../reference/stopwatches.html#boost_stopwatches.reference.stopwatches.stopwatch_accumulator_hpp.stopwatch_accumulator" title="
Template Class stopwatch_accumulator<>"><code class="computeroutput"><span class="identifier">stopwatch_accumulator</span></code></a> only reports
statistics once all measurements have been acquired, which removes reporting
- overhead from the measurements. The other approach is to use a SuspendibleClock
such that the reporting
+ overhead from the measurements. The other approach is to use a <code class="computeroutput"><span class="identifier">SuspendibleClock</span></code> such that the reporting
overhead can be ignored by suspending elapsed time tracking during reporting
operations
</p>
Modified: sandbox/chrono/libs/stopwatches/doc/html/boost_stopwatches/reference.html
==============================================================================
--- sandbox/chrono/libs/stopwatches/doc/html/boost_stopwatches/reference.html (original)
+++ sandbox/chrono/libs/stopwatches/doc/html/boost_stopwatches/reference.html 2010-09-04 08:19:57 EDT (Sat, 04 Sep 2010)
@@ -6,7 +6,7 @@
<meta name="generator" content="DocBook XSL Stylesheets V1.69.1">
<link rel="start" href="../index.html" title="Boost.Stopwatches">
<link rel="up" href="../index.html" title="Boost.Stopwatches">
-<link rel="prev" href="examples/reporting.html" title="Reporting">
+<link rel="prev" href="users_guide/examples.html" title="Examples">
<link rel="next" href="reference/stopwatches.html" title=" Stopwatches">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
@@ -20,7 +20,7 @@
</tr></table>
<hr>
<div class="spirit-nav">
-<a accesskey="p" href="examples/reporting.html"><img src="../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../index.html"><img src="../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../index.html"><img src="../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="reference/stopwatches.html"><img src="../../../../../doc/src/images/next.png" alt="Next"></a>
+<a accesskey="p" href="users_guide/examples.html"><img src="../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../index.html"><img src="../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../index.html"><img src="../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="reference/stopwatches.html"><img src="../../../../../doc/src/images/next.png" alt="Next"></a>
</div>
<div class="section" lang="en">
<div class="titlepage"><div><div><h2 class="title" style="clear: both">
@@ -32,17 +32,17 @@
<dt><span class="section"><a href="reference/stopwatches.html#boost_stopwatches.reference.stopwatches.stopwatches_hpp">
Header <code class="computeroutput"><span class="special"><</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">stopwatches</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">></span></code></a></span></dt>
<dt><span class="section"><a href="reference/stopwatches.html#boost_stopwatches.reference.stopwatches.chrono_stopwatches_hpp">
- Header <code class="computeroutput"><span class="special"><</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">chrono</span><span class="special">/</span><span class="identifier">stopwatches</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">></span></code></a></span></dt>
+ Header <code class="computeroutput"><span class="special"><</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">stopwatches</span><span class="special">/</span><span class="identifier">stopwatches</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">></span></code></a></span></dt>
<dt><span class="section"><a href="reference/stopwatches.html#boost_stopwatches.reference.stopwatches.stopwatch_req">
<code class="computeroutput"><span class="identifier">Stopwatch</span></code> Requirements</a></span></dt>
<dt><span class="section"><a href="reference/stopwatches.html#boost_stopwatches.reference.stopwatches.lightweight_stopwatch_hpp">
- Header <code class="computeroutput"><span class="special"><</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">chrono</span><span class="special">/</span><span class="identifier">lightweight_stopwatch</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">></span></code></a></span></dt>
+ Header <code class="computeroutput"><span class="special"><</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">stopwatches</span><span class="special">/</span><span class="identifier">lightweight_stopwatch</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">></span></code></a></span></dt>
<dt><span class="section"><a href="reference/stopwatches.html#boost_stopwatches.reference.stopwatches.stopwatch_hpp">
- Header <code class="computeroutput"><span class="special"><</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">chrono</span><span class="special">/</span><span class="identifier">stopwatch</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">></span></code></a></span></dt>
+ Header <code class="computeroutput"><span class="special"><</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">stopwatches</span><span class="special">/</span><span class="identifier">stopwatch</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">></span></code></a></span></dt>
<dt><span class="section"><a href="reference/stopwatches.html#boost_stopwatches.reference.stopwatches.stopwatch_accumulator_hpp">
- Header <code class="computeroutput"><span class="special"><</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">chrono</span><span class="special">/</span><span class="identifier">stopwatch_accumulator</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">></span></code></a></span></dt>
+ Header <code class="computeroutput"><span class="special"><</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">stopwatches</span><span class="special">/</span><span class="identifier">stopwatch_accumulator</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">></span></code></a></span></dt>
<dt><span class="section"><a href="reference/stopwatches.html#boost_stopwatches.reference.stopwatches.stopwatch_scoped_hpp">
- Header <code class="computeroutput"><span class="special"><</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">chrono</span><span class="special">/</span><span class="identifier">stopwatch_scoped</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">></span></code></a></span></dt>
+ Header <code class="computeroutput"><span class="special"><</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">stopwatches</span><span class="special">/</span><span class="identifier">stopwatch_scoped</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">></span></code></a></span></dt>
</dl></dd>
<dt><span class="section"> Stopwatch Reporters</span></dt>
<dd><dl>
@@ -50,28 +50,28 @@
<code class="computeroutput"><span class="identifier">Formatter</span></code> Requirements</a></span></dt>
<dt><span class="section">Formatter
related traits</span></dt>
<dt><span class="section"><a href="reference/reporters.html#boost_stopwatches.reference.reporters.stopwatch_reporter_hpp">
- Header <code class="computeroutput"><span class="special"><</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">chrono</span><span class="special">/</span><span class="identifier">stopwatch_reporter</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">></span></code></a></span></dt>
+ Header <code class="computeroutput"><span class="special"><</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">stopwatches</span><span class="special">/</span><span class="identifier">stopwatch_reporter</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">></span></code></a></span></dt>
<dt><span class="section"><a href="reference/reporters.html#boost_stopwatches.reference.reporters.stopclock_hpp">
- Header <code class="computeroutput"><span class="special"><</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">chrono</span><span class="special">/</span><span class="identifier">stopclock</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">></span></code></a></span></dt>
+ Header <code class="computeroutput"><span class="special"><</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">stopwatches</span><span class="special">/</span><span class="identifier">stopclock</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">></span></code></a></span></dt>
<dt><span class="section"><a href="reference/reporters.html#boost_stopwatches.reference.reporters.stopclock_accumulator_hpp">
- Header <code class="computeroutput"><span class="special"><</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">chrono</span><span class="special">/</span><span class="identifier">stopclock_accumulator</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">></span></code></a></span></dt>
+ Header <code class="computeroutput"><span class="special"><</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">stopwatches</span><span class="special">/</span><span class="identifier">stopclock_accumulator</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">></span></code></a></span></dt>
<dt><span class="section"><a href="reference/reporters.html#boost_stopwatches.reference.reporters.scoped_stopclock_hpp">
- Header <code class="computeroutput"><span class="special"><</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">chrono</span><span class="special">/</span><span class="identifier">scoped_stopclock</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">></span></code></a></span></dt>
+ Header <code class="computeroutput"><span class="special"><</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">stopwatches</span><span class="special">/</span><span class="identifier">scoped_stopclock</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">></span></code></a></span></dt>
</dl></dd>
<dt><span class="section"> Stopwatch Formatters</span></dt>
<dd><dl>
<dt><span class="section"><a href="reference/formatters.html#boost_stopwatches.reference.formatters.stopwatch_formatter_hpp">
- Header <code class="computeroutput"><span class="special"><</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">chrono</span><span class="special">/</span><span class="identifier">stopwatch_formatter</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">></span></code></a></span></dt>
+ Header <code class="computeroutput"><span class="special"><</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">stopwatches</span><span class="special">/</span><span class="identifier">stopwatch_formatter</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">></span></code></a></span></dt>
<dt><span class="section"><a href="reference/formatters.html#boost_stopwatches.reference.formatters.stopwatch_accumulator_formatter_hpp">
- Header <code class="computeroutput"><span class="special"><</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">chrono</span><span class="special">/</span><span class="identifier">stopwatch_accumulator_formatter</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">></span></code></a></span></dt>
+ Header <code class="computeroutput"><span class="special"><</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">stopwatches</span><span class="special">/</span><span class="identifier">stopwatch_accumulator_formatter</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">></span></code></a></span></dt>
<dt><span class="section"><a href="reference/formatters.html#boost_stopwatches.reference.formatters.time_formatter_hpp">
- Header <code class="computeroutput"><span class="special"><</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">chrono</span><span class="special">/</span><span class="identifier">time_formatter</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">></span></code></a></span></dt>
+ Header <code class="computeroutput"><span class="special"><</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">stopwatches</span><span class="special">/</span><span class="identifier">time_formatter</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">></span></code></a></span></dt>
<dt><span class="section"><a href="reference/formatters.html#boost_stopwatches.reference.formatters.stopwatch_accumulator_time_formatter_hpp">
- Header <code class="computeroutput"><span class="special"><</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">chrono</span><span class="special">/</span><span class="identifier">stopwatch_accumulator_time_formatter</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">></span></code></a></span></dt>
+ Header <code class="computeroutput"><span class="special"><</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">stopwatches</span><span class="special">/</span><span class="identifier">stopwatch_accumulator_time_formatter</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">></span></code></a></span></dt>
<dt><span class="section"><a href="reference/formatters.html#boost_stopwatches.reference.formatters.t24_hours_hpp">
- Header <code class="computeroutput"><span class="special"><</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">chrono</span><span class="special">/</span><span class="identifier">t24_hours</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">></span></code></a></span></dt>
+ Header <code class="computeroutput"><span class="special"><</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">stopwatches</span><span class="special">/</span><span class="identifier">t24_hours</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">></span></code></a></span></dt>
<dt><span class="section"><a href="reference/formatters.html#boost_stopwatches.reference.formatters.t24_hours_formatter_hpp">
- Header <code class="computeroutput"><span class="special"><</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">chrono</span><span class="special">/</span><span class="identifier">t24_hours_formatter</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">></span></code></a></span></dt>
+ Header <code class="computeroutput"><span class="special"><</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">stopwatches</span><span class="special">/</span><span class="identifier">t24_hours_formatter</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">></span></code></a></span></dt>
</dl></dd>
</dl></div>
</div>
@@ -85,7 +85,7 @@
</tr></table>
<hr>
<div class="spirit-nav">
-<a accesskey="p" href="examples/reporting.html"><img src="../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../index.html"><img src="../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../index.html"><img src="../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="reference/stopwatches.html"><img src="../../../../../doc/src/images/next.png" alt="Next"></a>
+<a accesskey="p" href="users_guide/examples.html"><img src="../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../index.html"><img src="../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../index.html"><img src="../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="reference/stopwatches.html"><img src="../../../../../doc/src/images/next.png" alt="Next"></a>
</div>
</body>
</html>
Modified: sandbox/chrono/libs/stopwatches/doc/html/boost_stopwatches/reference/formatters.html
==============================================================================
--- sandbox/chrono/libs/stopwatches/doc/html/boost_stopwatches/reference/formatters.html (original)
+++ sandbox/chrono/libs/stopwatches/doc/html/boost_stopwatches/reference/formatters.html 2010-09-04 08:19:57 EDT (Sat, 04 Sep 2010)
@@ -28,11 +28,11 @@
</h3></div></div></div>
<div class="toc"><dl>
<dt><span class="section"><a href="formatters.html#boost_stopwatches.reference.formatters.stopwatch_formatter_hpp">
- Header <code class="computeroutput"><span class="special"><</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">chrono</span><span class="special">/</span><span class="identifier">stopwatch_formatter</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">></span></code></a></span></dt>
+ Header <code class="computeroutput"><span class="special"><</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">stopwatches</span><span class="special">/</span><span class="identifier">stopwatch_formatter</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">></span></code></a></span></dt>
<dd><dl><dt><span class="section"><a href="formatters.html#boost_stopwatches.reference.formatters.stopwatch_formatter_hpp.basic_stopwatch_formatter">
Template Class <code class="computeroutput"><span class="identifier">basic_stopwatch_formatter</span><span class="special"><></span></code></a></span></dt></dl></dd>
<dt><span class="section"><a href="formatters.html#boost_stopwatches.reference.formatters.stopwatch_accumulator_formatter_hpp">
- Header <code class="computeroutput"><span class="special"><</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">chrono</span><span class="special">/</span><span class="identifier">stopwatch_accumulator_formatter</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">></span></code></a></span></dt>
+ Header <code class="computeroutput"><span class="special"><</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">stopwatches</span><span class="special">/</span><span class="identifier">stopwatch_accumulator_formatter</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">></span></code></a></span></dt>
<dd><dl>
<dt><span class="section"><a href="formatters.html#boost_stopwatches.reference.formatters.stopwatch_accumulator_formatter_hpp.basic_stopwatch_accumulator_formatter">
Template Class <code class="computeroutput"><span class="identifier">basic_stopwatch_accumulator_formatter</span><span class="special"><></span></code></a></span></dt>
@@ -41,7 +41,7 @@
useful typedefs</a></span></dt>
</dl></dd>
<dt><span class="section"><a href="formatters.html#boost_stopwatches.reference.formatters.time_formatter_hpp">
- Header <code class="computeroutput"><span class="special"><</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">chrono</span><span class="special">/</span><span class="identifier">time_formatter</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">></span></code></a></span></dt>
+ Header <code class="computeroutput"><span class="special"><</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">stopwatches</span><span class="special">/</span><span class="identifier">time_formatter</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">></span></code></a></span></dt>
<dd><dl>
<dt><span class="section"><a href="formatters.html#boost_stopwatches.reference.formatters.time_formatter_hpp.basic_time_formatter">
Template Class <code class="computeroutput"><span class="identifier">basic_time_formatter</span><span class="special"><></span></code></a></span></dt>
@@ -53,7 +53,7 @@
Specialization</a></span></dt>
</dl></dd>
<dt><span class="section"><a href="formatters.html#boost_stopwatches.reference.formatters.stopwatch_accumulator_time_formatter_hpp">
- Header <code class="computeroutput"><span class="special"><</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">chrono</span><span class="special">/</span><span class="identifier">stopwatch_accumulator_time_formatter</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">></span></code></a></span></dt>
+ Header <code class="computeroutput"><span class="special"><</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">stopwatches</span><span class="special">/</span><span class="identifier">stopwatch_accumulator_time_formatter</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">></span></code></a></span></dt>
<dd><dl>
<dt><span class="section"><a href="formatters.html#boost_stopwatches.reference.formatters.stopwatch_accumulator_time_formatter_hpp.basic_stopwatch_accumulator_time_formatter">
Template Class <code class="computeroutput"><span class="identifier">basic_stopwatch_accumulator_time_formatter</span><span class="special"><></span></code></a></span></dt>
@@ -62,11 +62,11 @@
useful typedefs</a></span></dt>
</dl></dd>
<dt><span class="section"><a href="formatters.html#boost_stopwatches.reference.formatters.t24_hours_hpp">
- Header <code class="computeroutput"><span class="special"><</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">chrono</span><span class="special">/</span><span class="identifier">t24_hours</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">></span></code></a></span></dt>
+ Header <code class="computeroutput"><span class="special"><</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">stopwatches</span><span class="special">/</span><span class="identifier">t24_hours</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">></span></code></a></span></dt>
<dd><dl><dt><span class="section"><a href="formatters.html#boost_stopwatches.reference.formatters.t24_hours_hpp.t24_hours">
Class <code class="computeroutput"><span class="identifier">t24_hours</span></code></a></span></dt></dl></dd>
<dt><span class="section"><a href="formatters.html#boost_stopwatches.reference.formatters.t24_hours_formatter_hpp">
- Header <code class="computeroutput"><span class="special"><</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">chrono</span><span class="special">/</span><span class="identifier">t24_hours_formatter</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">></span></code></a></span></dt>
+ Header <code class="computeroutput"><span class="special"><</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">stopwatches</span><span class="special">/</span><span class="identifier">t24_hours_formatter</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">></span></code></a></span></dt>
<dd><dl>
<dt><span class="section"><a href="formatters.html#boost_stopwatches.reference.formatters.t24_hours_formatter_hpp.basic_24_hours_formatter">
Template Class <code class="computeroutput"><span class="identifier">basic_24_hours_formatter</span><span class="special"><></span></code></a></span></dt>
@@ -78,12 +78,12 @@
<div class="section" lang="en">
<div class="titlepage"><div><div><h4 class="title">
<a name="boost_stopwatches.reference.formatters.stopwatch_formatter_hpp"></a><a href="formatters.html#boost_stopwatches.reference.formatters.stopwatch_formatter_hpp" title="
- Header <boost/chrono/stopwatch_formatter.hpp>">
- Header <code class="computeroutput"><span class="special"><</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">chrono</span><span class="special">/</span><span class="identifier">stopwatch_formatter</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">></span></code></a>
+ Header <boost/stopwatches/stopwatch_formatter.hpp>">
+ Header <code class="computeroutput"><span class="special"><</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">stopwatches</span><span class="special">/</span><span class="identifier">stopwatch_formatter</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">></span></code></a>
</h4></div></div></div>
<div class="toc"><dl><dt><span class="section"><a href="formatters.html#boost_stopwatches.reference.formatters.stopwatch_formatter_hpp.basic_stopwatch_formatter">
Template Class <code class="computeroutput"><span class="identifier">basic_stopwatch_formatter</span><span class="special"><></span></code></a></span></dt></dl></div>
-<pre class="programlisting"><span class="keyword">namespace</span> <span class="identifier">boost</span> <span class="special">{</span> <span class="keyword">namespace</span> <span class="identifier">chrono</span> <span class="special">{</span>
+<pre class="programlisting"><span class="keyword">namespace</span> <span class="identifier">boost</span> <span class="special">{</span> <span class="keyword">namespace</span> <span class="identifier">stopwatches</span> <span class="special">{</span>
<span class="keyword">template</span> <span class="special"><</span>
<span class="keyword">typename</span> <span class="identifier">CharT</span><span class="special">=</span><span class="keyword">char</span><span class="special">,</span>
<span class="keyword">typename</span> <span class="identifier">Traits</span><span class="special">=</span><span class="identifier">std</span><span class="special">::</span><span class="identifier">char_traits</span><span class="special"><</span><span class="identifier">CharT</span><span class="special">>,</span>
@@ -144,8 +144,8 @@
<div class="section" lang="en">
<div class="titlepage"><div><div><h4 class="title">
<a name="boost_stopwatches.reference.formatters.stopwatch_accumulator_formatter_hpp"></a><a href="formatters.html#boost_stopwatches.reference.formatters.stopwatch_accumulator_formatter_hpp" title="
- Header <boost/chrono/stopwatch_accumulator_formatter.hpp>">
- Header <code class="computeroutput"><span class="special"><</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">chrono</span><span class="special">/</span><span class="identifier">stopwatch_accumulator_formatter</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">></span></code></a>
+ Header <boost/stopwatches/stopwatch_accumulator_formatter.hpp>">
+ Header <code class="computeroutput"><span class="special"><</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">stopwatches</span><span class="special">/</span><span class="identifier">stopwatch_accumulator_formatter</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">></span></code></a>
</h4></div></div></div>
<div class="toc"><dl>
<dt><span class="section"><a href="formatters.html#boost_stopwatches.reference.formatters.stopwatch_accumulator_formatter_hpp.basic_stopwatch_accumulator_formatter">
@@ -154,7 +154,7 @@
<code class="computeroutput"><span class="identifier">basic_stopwatch_accumulator_formatter</span></code>
useful typedefs</a></span></dt>
</dl></div>
-<pre class="programlisting"><span class="keyword">namespace</span> <span class="identifier">boost</span> <span class="special">{</span> <span class="keyword">namespace</span> <span class="identifier">chrono</span> <span class="special">{</span>
+<pre class="programlisting"><span class="keyword">namespace</span> <span class="identifier">boost</span> <span class="special">{</span> <span class="keyword">namespace</span> <span class="identifier">stopwatches</span> <span class="special">{</span>
<span class="keyword">template</span> <span class="special"><</span>
<span class="keyword">typename</span> <span class="identifier">CharT</span><span class="special">=</span><span class="keyword">char</span><span class="special">,</span>
<span class="keyword">typename</span> <span class="identifier">Traits</span><span class="special">=</span><span class="identifier">std</span><span class="special">::</span><span class="identifier">char_traits</span><span class="special"><</span><span class="identifier">CharT</span><span class="special">>,</span>
@@ -264,8 +264,8 @@
<div class="section" lang="en">
<div class="titlepage"><div><div><h4 class="title">
<a name="boost_stopwatches.reference.formatters.time_formatter_hpp"></a><a href="formatters.html#boost_stopwatches.reference.formatters.time_formatter_hpp" title="
- Header <boost/chrono/time_formatter.hpp>">
- Header <code class="computeroutput"><span class="special"><</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">chrono</span><span class="special">/</span><span class="identifier">time_formatter</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">></span></code></a>
+ Header <boost/stopwatches/time_formatter.hpp>">
+ Header <code class="computeroutput"><span class="special"><</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">stopwatches</span><span class="special">/</span><span class="identifier">time_formatter</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">></span></code></a>
</h4></div></div></div>
<div class="toc"><dl>
<dt><span class="section"><a href="formatters.html#boost_stopwatches.reference.formatters.time_formatter_hpp.basic_time_formatter">
@@ -277,7 +277,7 @@
<code class="computeroutput"><span class="identifier">stopwatch_reporter_default_formatter</span></code>
Specialization</a></span></dt>
</dl></div>
-<pre class="programlisting"><span class="keyword">namespace</span> <span class="identifier">boost</span> <span class="special">{</span> <span class="keyword">namespace</span> <span class="identifier">chrono</span> <span class="special">{</span>
+<pre class="programlisting"><span class="keyword">namespace</span> <span class="identifier">boost</span> <span class="special">{</span> <span class="keyword">namespace</span> <span class="identifier">stopwatches</span> <span class="special">{</span>
<span class="keyword">template</span> <span class="special"><</span>
<span class="keyword">typename</span> <span class="identifier">CharT</span><span class="special">=</span><span class="keyword">char</span><span class="special">,</span>
@@ -390,8 +390,8 @@
<div class="section" lang="en">
<div class="titlepage"><div><div><h4 class="title">
<a name="boost_stopwatches.reference.formatters.stopwatch_accumulator_time_formatter_hpp"></a><a href="formatters.html#boost_stopwatches.reference.formatters.stopwatch_accumulator_time_formatter_hpp" title="
- Header <boost/chrono/stopwatch_accumulator_time_formatter.hpp>">
- Header <code class="computeroutput"><span class="special"><</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">chrono</span><span class="special">/</span><span class="identifier">stopwatch_accumulator_time_formatter</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">></span></code></a>
+ Header <boost/stopwatches/stopwatch_accumulator_time_formatter.hpp>">
+ Header <code class="computeroutput"><span class="special"><</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">stopwatches</span><span class="special">/</span><span class="identifier">stopwatch_accumulator_time_formatter</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">></span></code></a>
</h4></div></div></div>
<div class="toc"><dl>
<dt><span class="section"><a href="formatters.html#boost_stopwatches.reference.formatters.stopwatch_accumulator_time_formatter_hpp.basic_stopwatch_accumulator_time_formatter">
@@ -400,7 +400,7 @@
<code class="computeroutput"><span class="identifier">basic_stopwatch_accumulator_time_formatter</span></code>
useful typedefs</a></span></dt>
</dl></div>
-<pre class="programlisting"><span class="keyword">namespace</span> <span class="identifier">boost</span> <span class="special">{</span> <span class="keyword">namespace</span> <span class="identifier">chrono</span> <span class="special">{</span>
+<pre class="programlisting"><span class="keyword">namespace</span> <span class="identifier">boost</span> <span class="special">{</span> <span class="keyword">namespace</span> <span class="identifier">stopwatches</span> <span class="special">{</span>
<span class="keyword">template</span> <span class="special"><</span>
<span class="keyword">typename</span> <span class="identifier">CharT</span><span class="special">=</span><span class="keyword">char</span><span class="special">,</span>
<span class="keyword">typename</span> <span class="identifier">Traits</span><span class="special">=</span><span class="identifier">std</span><span class="special">::</span><span class="identifier">char_traits</span><span class="special"><</span><span class="identifier">CharT</span><span class="special">>,</span>
@@ -536,12 +536,12 @@
<div class="section" lang="en">
<div class="titlepage"><div><div><h4 class="title">
<a name="boost_stopwatches.reference.formatters.t24_hours_hpp"></a><a href="formatters.html#boost_stopwatches.reference.formatters.t24_hours_hpp" title="
- Header <boost/chrono/t24_hours.hpp>">
- Header <code class="computeroutput"><span class="special"><</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">chrono</span><span class="special">/</span><span class="identifier">t24_hours</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">></span></code></a>
+ Header <boost/stopwatches/t24_hours.hpp>">
+ Header <code class="computeroutput"><span class="special"><</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">stopwatches</span><span class="special">/</span><span class="identifier">t24_hours</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">></span></code></a>
</h4></div></div></div>
<div class="toc"><dl><dt><span class="section"><a href="formatters.html#boost_stopwatches.reference.formatters.t24_hours_hpp.t24_hours">
Class <code class="computeroutput"><span class="identifier">t24_hours</span></code></a></span></dt></dl></div>
-<pre class="programlisting"><span class="keyword">namespace</span> <span class="identifier">boost</span> <span class="special">{</span> <span class="keyword">namespace</span> <span class="identifier">chrono</span> <span class="special">{</span>
+<pre class="programlisting"><span class="keyword">namespace</span> <span class="identifier">boost</span> <span class="special">{</span> <span class="keyword">namespace</span> <span class="identifier">stopwatches</span> <span class="special">{</span>
<span class="keyword">class</span> <span class="identifier">t24_hours</span><span class="special">;</span>
<span class="special">}}</span>
</pre>
@@ -595,8 +595,8 @@
<div class="section" lang="en">
<div class="titlepage"><div><div><h4 class="title">
<a name="boost_stopwatches.reference.formatters.t24_hours_formatter_hpp"></a><a href="formatters.html#boost_stopwatches.reference.formatters.t24_hours_formatter_hpp" title="
- Header <boost/chrono/t24_hours_formatter.hpp>">
- Header <code class="computeroutput"><span class="special"><</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">chrono</span><span class="special">/</span><span class="identifier">t24_hours_formatter</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">></span></code></a>
+ Header <boost/stopwatches/t24_hours_formatter.hpp>">
+ Header <code class="computeroutput"><span class="special"><</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">stopwatches</span><span class="special">/</span><span class="identifier">t24_hours_formatter</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">></span></code></a>
</h4></div></div></div>
<div class="toc"><dl>
<dt><span class="section"><a href="formatters.html#boost_stopwatches.reference.formatters.t24_hours_formatter_hpp.basic_24_hours_formatter">
@@ -605,7 +605,7 @@
<code class="computeroutput"><span class="identifier">basic_24_hours_formatter</span></code>
useful typedefs</a></span></dt>
</dl></div>
-<pre class="programlisting"><span class="keyword">namespace</span> <span class="identifier">boost</span> <span class="special">{</span> <span class="keyword">namespace</span> <span class="identifier">chrono</span> <span class="special">{</span>
+<pre class="programlisting"><span class="keyword">namespace</span> <span class="identifier">boost</span> <span class="special">{</span> <span class="keyword">namespace</span> <span class="identifier">stopwatches</span> <span class="special">{</span>
<span class="keyword">template</span> <span class="special"><</span>
<span class="keyword">typename</span> <span class="identifier">CharT</span><span class="special">=</span><span class="keyword">char</span><span class="special">,</span>
Modified: sandbox/chrono/libs/stopwatches/doc/html/boost_stopwatches/reference/reporters.html
==============================================================================
--- sandbox/chrono/libs/stopwatches/doc/html/boost_stopwatches/reference/reporters.html (original)
+++ sandbox/chrono/libs/stopwatches/doc/html/boost_stopwatches/reference/reporters.html 2010-09-04 08:19:57 EDT (Sat, 04 Sep 2010)
@@ -31,7 +31,7 @@
<code class="computeroutput"><span class="identifier">Formatter</span></code> Requirements</a></span></dt>
<dt><span class="section">Formatter
related traits</span></dt>
<dt><span class="section"><a href="reporters.html#boost_stopwatches.reference.reporters.stopwatch_reporter_hpp">
- Header <code class="computeroutput"><span class="special"><</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">chrono</span><span class="special">/</span><span class="identifier">stopwatch_reporter</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">></span></code></a></span></dt>
+ Header <code class="computeroutput"><span class="special"><</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">stopwatches</span><span class="special">/</span><span class="identifier">stopwatch_reporter</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">></span></code></a></span></dt>
<dd><dl>
<dt><span class="section"><a href="reporters.html#boost_stopwatches.reference.reporters.stopwatch_reporter_hpp.basic_stopwatch_reporter">
Template Class <code class="computeroutput"><span class="identifier">basic_stopwatch_reporter</span><span class="special"><></span></code></a></span></dt>
@@ -41,7 +41,7 @@
Template Class <code class="computeroutput"><span class="identifier">wstopwatch_reporter</span><span class="special"><></span></code></a></span></dt>
</dl></dd>
<dt><span class="section"><a href="reporters.html#boost_stopwatches.reference.reporters.stopclock_hpp">
- Header <code class="computeroutput"><span class="special"><</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">chrono</span><span class="special">/</span><span class="identifier">stopclock</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">></span></code></a></span></dt>
+ Header <code class="computeroutput"><span class="special"><</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">stopwatches</span><span class="special">/</span><span class="identifier">stopclock</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">></span></code></a></span></dt>
<dd><dl>
<dt><span class="section"><a href="reporters.html#boost_stopwatches.reference.reporters.stopclock_hpp.basic_stopclock">
Template Class <code class="computeroutput"><span class="identifier">basic_stopclock</span><span class="special"><></span></code></a></span></dt>
@@ -55,7 +55,7 @@
<code class="computeroutput"><span class="identifier">wstopclock</span></code> useful typedefs</a></span></dt>
</dl></dd>
<dt><span class="section"><a href="reporters.html#boost_stopwatches.reference.reporters.stopclock_accumulator_hpp">
- Header <code class="computeroutput"><span class="special"><</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">chrono</span><span class="special">/</span><span class="identifier">stopclock_accumulator</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">></span></code></a></span></dt>
+ Header <code class="computeroutput"><span class="special"><</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">stopwatches</span><span class="special">/</span><span class="identifier">stopclock_accumulator</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">></span></code></a></span></dt>
<dd><dl>
<dt><span class="section"><a href="reporters.html#boost_stopwatches.reference.reporters.stopclock_accumulator_hpp.basic_stopclock_accumulator">
Template Class <code class="computeroutput"><span class="identifier">basic_stopclock_accumulator</span><span class="special"><></span></code></a></span></dt>
@@ -71,7 +71,7 @@
useful typedefs</a></span></dt>
</dl></dd>
<dt><span class="section"><a href="reporters.html#boost_stopwatches.reference.reporters.scoped_stopclock_hpp">
- Header <code class="computeroutput"><span class="special"><</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">chrono</span><span class="special">/</span><span class="identifier">scoped_stopclock</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">></span></code></a></span></dt>
+ Header <code class="computeroutput"><span class="special"><</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">stopwatches</span><span class="special">/</span><span class="identifier">scoped_stopclock</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">></span></code></a></span></dt>
<dd><dl><dt><span class="section"><a href="reporters.html#boost_stopwatches.reference.reporters.scoped_stopclock_hpp.scoped_stopclock">
Template Class <code class="computeroutput"><span class="identifier">scoped_stopclock</span><span class="special"><></span></code></a></span></dt></dl></dd>
</dl></div>
@@ -236,8 +236,8 @@
<div class="section" lang="en">
<div class="titlepage"><div><div><h4 class="title">
<a name="boost_stopwatches.reference.reporters.stopwatch_reporter_hpp"></a><a href="reporters.html#boost_stopwatches.reference.reporters.stopwatch_reporter_hpp" title="
- Header <boost/chrono/stopwatch_reporter.hpp>">
- Header <code class="computeroutput"><span class="special"><</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">chrono</span><span class="special">/</span><span class="identifier">stopwatch_reporter</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">></span></code></a>
+ Header <boost/stopwatches/stopwatch_reporter.hpp>">
+ Header <code class="computeroutput"><span class="special"><</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">stopwatches</span><span class="special">/</span><span class="identifier">stopwatch_reporter</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">></span></code></a>
</h4></div></div></div>
<div class="toc"><dl>
<dt><span class="section"><a href="reporters.html#boost_stopwatches.reference.reporters.stopwatch_reporter_hpp.basic_stopwatch_reporter">
@@ -247,7 +247,7 @@
<dt><span class="section"><a href="reporters.html#boost_stopwatches.reference.reporters.stopwatch_reporter_hpp.wstopwatch_reporter">
Template Class <code class="computeroutput"><span class="identifier">wstopwatch_reporter</span><span class="special"><></span></code></a></span></dt>
</dl></div>
-<pre class="programlisting"><span class="keyword">namespace</span> <span class="identifier">boost</span> <span class="special">{</span> <span class="keyword">namespace</span> <span class="identifier">chrono</span> <span class="special">{</span>
+<pre class="programlisting"><span class="keyword">namespace</span> <span class="identifier">boost</span> <span class="special">{</span> <span class="keyword">namespace</span> <span class="identifier">stopwatches</span> <span class="special">{</span>
<span class="keyword">template</span> <span class="special"><</span><span class="keyword">class</span> <span class="identifier">Stopwatch</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">Formatter</span><span class="special">></span>
<span class="keyword">class</span> <span class="identifier">basic_stopwatch_reporter</span><span class="special">;</span>
@@ -513,8 +513,8 @@
<div class="section" lang="en">
<div class="titlepage"><div><div><h4 class="title">
<a name="boost_stopwatches.reference.reporters.stopclock_hpp"></a><a href="reporters.html#boost_stopwatches.reference.reporters.stopclock_hpp" title="
- Header <boost/chrono/stopclock.hpp>">
- Header <code class="computeroutput"><span class="special"><</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">chrono</span><span class="special">/</span><span class="identifier">stopclock</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">></span></code></a>
+ Header <boost/stopwatches/stopclock.hpp>">
+ Header <code class="computeroutput"><span class="special"><</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">stopwatches</span><span class="special">/</span><span class="identifier">stopclock</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">></span></code></a>
</h4></div></div></div>
<div class="toc"><dl>
<dt><span class="section"><a href="reporters.html#boost_stopwatches.reference.reporters.stopclock_hpp.basic_stopclock">
@@ -528,7 +528,7 @@
<dt><span class="section"><a href="reporters.html#boost_stopwatches.reference.reporters.stopclock_hpp.wstopclock_typedefs">
<code class="computeroutput"><span class="identifier">wstopclock</span></code> useful typedefs</a></span></dt>
</dl></div>
-<pre class="programlisting"><span class="keyword">namespace</span> <span class="identifier">boost</span> <span class="special">{</span> <span class="keyword">namespace</span> <span class="identifier">chrono</span> <span class="special">{</span>
+<pre class="programlisting"><span class="keyword">namespace</span> <span class="identifier">boost</span> <span class="special">{</span> <span class="keyword">namespace</span> <span class="identifier">stopwatches</span> <span class="special">{</span>
<span class="keyword">template</span> <span class="special"><</span> <span class="keyword">class</span> <span class="identifier">Clock</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">Formatter</span> <span class="special">></span> <span class="keyword">class</span> <span class="identifier">basic_stopclock</span><span class="special">;</span>
<span class="keyword">template</span> <span class="special"><</span> <span class="keyword">class</span> <span class="identifier">Clock</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">Formatter</span> <span class="special">></span> <span class="keyword">class</span> <a href="reporters.html#boost_stopwatches.reference.reporters.stopclock_hpp.stopclock" title="
Template Class stopclock<>"><code class="computeroutput"><span class="identifier">stopclock</span></code></a><span class="special">;</span>
@@ -663,19 +663,19 @@
<p>
The library provides stopclock shortcuts for all the models of <code class="computeroutput"><span class="identifier">Clock</span></code>, replacing clock by stopclock.
</p>
-<pre class="programlisting"><span class="keyword">typedef</span> <span class="identifier">boost</span><span class="special">::</span><span class="identifier">chrono</span><span class="special">::</span><span class="identifier">stopclock</span><span class="special"><</span> <span class="identifier">boost</span><span class="special">::</span><span class="identifier">chrono</span><span class="special">::</span><span class="identifier">system_clock</span> <span class="special">></span>
+<pre class="programlisting"><span class="keyword">typedef</span> <span class="identifier">boost</span><span class="special">::</span><span class="identifier">stopwatches</span><span class="special">::</span><span class="identifier">stopclock</span><span class="special"><</span> <span class="identifier">boost</span><span class="special">::</span><span class="identifier">chrono</span><span class="special">::</span><span class="identifier">system_clock</span> <span class="special">></span>
<span class="identifier">system_stopwatch_stopclock</span><span class="special">;</span>
<span class="preprocessor">#ifdef</span> <code class="computeroutput"><span class="identifier">BOOST_CHRONO_HAS_CLOCK_MONOTONIC</span></code>
-<span class="keyword">typedef</span> <span class="identifier">boost</span><span class="special">::</span><span class="identifier">chrono</span><span class="special">::</span><span class="identifier">stopclock</span><span class="special"><</span> <span class="identifier">boost</span><span class="special">::</span><span class="identifier">chrono</span><span class="special">::</span><span class="identifier">monotonic_clock</span> <span class="special">></span>
+<span class="keyword">typedef</span> <span class="identifier">boost</span><span class="special">::</span><span class="identifier">stopwatches</span><span class="special">::</span><span class="identifier">stopclock</span><span class="special"><</span> <span class="identifier">boost</span><span class="special">::</span><span class="identifier">chrono</span><span class="special">::</span><span class="identifier">monotonic_clock</span> <span class="special">></span>
<span class="identifier">monotonic_stopwatch_stopclock</span><span class="special">;</span>
<span class="preprocessor">#endif</span>
-<span class="keyword">typedef</span> <span class="identifier">boost</span><span class="special">::</span><span class="identifier">chrono</span><span class="special">::</span><span class="identifier">stopclock</span><span class="special"><</span> <span class="identifier">boost</span><span class="special">::</span><span class="identifier">chrono</span><span class="special">::</span><span class="identifier">high_resolution_clock</span> <span class="special">></span>
+<span class="keyword">typedef</span> <span class="identifier">boost</span><span class="special">::</span><span class="identifier">stopwatches</span><span class="special">::</span><span class="identifier">stopclock</span><span class="special"><</span> <span class="identifier">boost</span><span class="special">::</span><span class="identifier">chrono</span><span class="special">::</span><span class="identifier">high_resolution_clock</span> <span class="special">></span>
<span class="identifier">high_resolution_stopclock</span><span class="special">;</span>
-<span class="keyword">typedef</span> <span class="identifier">boost</span><span class="special">::</span><span class="identifier">chrono</span><span class="special">::</span><span class="identifier">stopclock</span><span class="special"><</span> <span class="identifier">boost</span><span class="special">::</span><span class="identifier">chrono</span><span class="special">::</span><span class="identifier">process_real_cpu_clock</span> <span class="special">></span>
+<span class="keyword">typedef</span> <span class="identifier">boost</span><span class="special">::</span><span class="identifier">stopwatches</span><span class="special">::</span><span class="identifier">stopclock</span><span class="special"><</span> <span class="identifier">boost</span><span class="special">::</span><span class="identifier">chrono</span><span class="special">::</span><span class="identifier">process_real_cpu_clock</span> <span class="special">></span>
<span class="identifier">process_real_cpu_stopclock</span><span class="special">;</span>
-<span class="keyword">typedef</span> <span class="identifier">boost</span><span class="special">::</span><span class="identifier">chrono</span><span class="special">::</span><span class="identifier">stopclock</span><span class="special"><</span> <span class="identifier">boost</span><span class="special">::</span><span class="identifier">chrono</span><span class="special">::</span><span class="identifier">process_user_cpu_clock</span> <span class="special">></span>
+<span class="keyword">typedef</span> <span class="identifier">boost</span><span class="special">::</span><span class="identifier">stopwatches</span><span class="special">::</span><span class="identifier">stopclock</span><span class="special"><</span> <span class="identifier">boost</span><span class="special">::</span><span class="identifier">chrono</span><span class="special">::</span><span class="identifier">process_user_cpu_clock</span> <span class="special">></span>
<span class="identifier">process_user_cpu_stopclock</span><span class="special">;</span>
-<span class="keyword">typedef</span> <span class="identifier">boost</span><span class="special">::</span><span class="identifier">chrono</span><span class="special">::</span><span class="identifier">stopclock</span><span class="special"><</span> <span class="identifier">boost</span><span class="special">::</span><span class="identifier">chrono</span><span class="special">::</span><span class="identifier">process_system_cpu_clock</span> <span class="special">></span>
+<span class="keyword">typedef</span> <span class="identifier">boost</span><span class="special">::</span><span class="identifier">stopwatches</span><span class="special">::</span><span class="identifier">stopclock</span><span class="special"><</span> <span class="identifier">boost</span><span class="special">::</span><span class="identifier">chrono</span><span class="special">::</span><span class="identifier">process_system_cpu_clock</span> <span class="special">></span>
<span class="identifier">process_system_cpu_stopclock</span><span class="special">;</span>
</pre>
</div>
@@ -739,19 +739,19 @@
<p>
The library provides wstopclock shortcuts for all the models of <code class="computeroutput"><span class="identifier">Clock</span></code>, replacing clock by wstopclock.
</p>
-<pre class="programlisting"><span class="keyword">typedef</span> <span class="identifier">boost</span><span class="special">::</span><span class="identifier">chrono</span><span class="special">::</span><span class="identifier">wstopclock</span><span class="special"><</span> <span class="identifier">boost</span><span class="special">::</span><span class="identifier">chrono</span><span class="special">::</span><span class="identifier">system_clock</span> <span class="special">></span>
+<pre class="programlisting"><span class="keyword">typedef</span> <span class="identifier">boost</span><span class="special">::</span><span class="identifier">stopwatches</span><span class="special">::</span><span class="identifier">wstopclock</span><span class="special"><</span> <span class="identifier">boost</span><span class="special">::</span><span class="identifier">chrono</span><span class="special">::</span><span class="identifier">system_clock</span> <span class="special">></span>
<span class="identifier">system_wstopclock</span><span class="special">;</span>
<span class="preprocessor">#ifdef</span> <code class="computeroutput"><span class="identifier">BOOST_CHRONO_HAS_CLOCK_MONOTONIC</span></code>
-<span class="keyword">typedef</span> <span class="identifier">boost</span><span class="special">::</span><span class="identifier">chrono</span><span class="special">::</span><span class="identifier">wstopclock</span><span class="special"><</span> <span class="identifier">boost</span><span class="special">::</span><span class="identifier">chrono</span><span class="special">::</span><span class="identifier">monotonic_clock</span> <span class="special">></span>
+<span class="keyword">typedef</span> <span class="identifier">boost</span><span class="special">::</span><span class="identifier">stopwatches</span><span class="special">::</span><span class="identifier">wstopclock</span><span class="special"><</span> <span class="identifier">boost</span><span class="special">::</span><span class="identifier">chrono</span><span class="special">::</span><span class="identifier">monotonic_clock</span> <span class="special">></span>
<span class="identifier">monotonic_wstopclock</span><span class="special">;</span>
<span class="preprocessor">#endif</span>
-<span class="keyword">typedef</span> <span class="identifier">boost</span><span class="special">::</span><span class="identifier">chrono</span><span class="special">::</span><span class="identifier">wstopclock</span><span class="special"><</span> <span class="identifier">boost</span><span class="special">::</span><span class="identifier">chrono</span><span class="special">::</span><span class="identifier">high_resolution_clock</span> <span class="special">></span>
+<span class="keyword">typedef</span> <span class="identifier">boost</span><span class="special">::</span><span class="identifier">stopwatches</span><span class="special">::</span><span class="identifier">wstopclock</span><span class="special"><</span> <span class="identifier">boost</span><span class="special">::</span><span class="identifier">chrono</span><span class="special">::</span><span class="identifier">high_resolution_clock</span> <span class="special">></span>
<span class="identifier">high_resolution_wstopclock</span><span class="special">;</span>
-<span class="keyword">typedef</span> <span class="identifier">boost</span><span class="special">::</span><span class="identifier">chrono</span><span class="special">::</span><span class="identifier">wstopclock</span><span class="special"><</span> <span class="identifier">boost</span><span class="special">::</span><span class="identifier">chrono</span><span class="special">::</span><span class="identifier">process_real_cpu_clock</span> <span class="special">></span>
+<span class="keyword">typedef</span> <span class="identifier">boost</span><span class="special">::</span><span class="identifier">stopwatches</span><span class="special">::</span><span class="identifier">wstopclock</span><span class="special"><</span> <span class="identifier">boost</span><span class="special">::</span><span class="identifier">chrono</span><span class="special">::</span><span class="identifier">process_real_cpu_clock</span> <span class="special">></span>
<span class="identifier">process_real_cpu_wstopclock</span><span class="special">;</span>
-<span class="keyword">typedef</span> <span class="identifier">boost</span><span class="special">::</span><span class="identifier">chrono</span><span class="special">::</span><span class="identifier">wstopclock</span><span class="special"><</span> <span class="identifier">boost</span><span class="special">::</span><span class="identifier">chrono</span><span class="special">::</span><span class="identifier">process_user_cpu_clock</span> <span class="special">></span>
+<span class="keyword">typedef</span> <span class="identifier">boost</span><span class="special">::</span><span class="identifier">stopwatches</span><span class="special">::</span><span class="identifier">wstopclock</span><span class="special"><</span> <span class="identifier">boost</span><span class="special">::</span><span class="identifier">chrono</span><span class="special">::</span><span class="identifier">process_user_cpu_clock</span> <span class="special">></span>
<span class="identifier">process_user_cpu_wstopclock</span><span class="special">;</span>
-<span class="keyword">typedef</span> <span class="identifier">boost</span><span class="special">::</span><span class="identifier">chrono</span><span class="special">::</span><span class="identifier">wstopclock</span><span class="special"><</span> <span class="identifier">boost</span><span class="special">::</span><span class="identifier">chrono</span><span class="special">::</span><span class="identifier">process_system_cpu_clock</span> <span class="special">></span>
+<span class="keyword">typedef</span> <span class="identifier">boost</span><span class="special">::</span><span class="identifier">stopwatches</span><span class="special">::</span><span class="identifier">wstopclock</span><span class="special"><</span> <span class="identifier">boost</span><span class="special">::</span><span class="identifier">chrono</span><span class="special">::</span><span class="identifier">process_system_cpu_clock</span> <span class="special">></span>
<span class="identifier">process_system_cpu_wstopclock</span><span class="special">;</span>
</pre>
</div>
@@ -759,8 +759,8 @@
<div class="section" lang="en">
<div class="titlepage"><div><div><h4 class="title">
<a name="boost_stopwatches.reference.reporters.stopclock_accumulator_hpp"></a><a href="reporters.html#boost_stopwatches.reference.reporters.stopclock_accumulator_hpp" title="
- Header <boost/chrono/stopclock_accumulator.hpp>">
- Header <code class="computeroutput"><span class="special"><</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">chrono</span><span class="special">/</span><span class="identifier">stopclock_accumulator</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">></span></code></a>
+ Header <boost/stopwatches/stopclock_accumulator.hpp>">
+ Header <code class="computeroutput"><span class="special"><</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">stopwatches</span><span class="special">/</span><span class="identifier">stopclock_accumulator</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">></span></code></a>
</h4></div></div></div>
<div class="toc"><dl>
<dt><span class="section"><a href="reporters.html#boost_stopwatches.reference.reporters.stopclock_accumulator_hpp.basic_stopclock_accumulator">
@@ -776,7 +776,7 @@
<code class="computeroutput"><span class="identifier">wstopclock_accumulator</span></code>
useful typedefs</a></span></dt>
</dl></div>
-<pre class="programlisting"><span class="keyword">namespace</span> <span class="identifier">boost</span> <span class="special">{</span> <span class="keyword">namespace</span> <span class="identifier">chrono</span> <span class="special">{</span>
+<pre class="programlisting"><span class="keyword">namespace</span> <span class="identifier">boost</span> <span class="special">{</span> <span class="keyword">namespace</span> <span class="identifier">stopwatches</span> <span class="special">{</span>
<span class="keyword">template</span> <span class="special"><</span> <span class="keyword">class</span> <span class="identifier">Clock</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">Formatter</span> <span class="special">></span>
<span class="keyword">class</span> <span class="identifier">basic_stopclock_accumulator</span><span class="special">;</span>
<span class="keyword">template</span> <span class="special"><</span> <span class="keyword">class</span> <span class="identifier">Clock</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">Formatter</span> <span class="special">></span>
@@ -925,19 +925,19 @@
of <code class="computeroutput"><span class="identifier">Clock</span></code>, replacing clock
by stopclock_accumulator.
</p>
-<pre class="programlisting"><span class="keyword">typedef</span> <span class="identifier">boost</span><span class="special">::</span><span class="identifier">chrono</span><span class="special">::</span><span class="identifier">stopclock_accumulator</span><span class="special"><</span> <span class="identifier">boost</span><span class="special">::</span><span class="identifier">chrono</span><span class="special">::</span><span class="identifier">system_clock</span> <span class="special">></span>
+<pre class="programlisting"><span class="keyword">typedef</span> <span class="identifier">boost</span><span class="special">::</span><span class="identifier">stopwatches</span><span class="special">::</span><span class="identifier">stopclock_accumulator</span><span class="special"><</span> <span class="identifier">boost</span><span class="special">::</span><span class="identifier">chrono</span><span class="special">::</span><span class="identifier">system_clock</span> <span class="special">></span>
<span class="identifier">system_stopclock_accumulator</span><span class="special">;</span>
<span class="preprocessor">#ifdef</span> <code class="computeroutput"><span class="identifier">BOOST_CHRONO_HAS_CLOCK_MONOTONIC</span></code>
-<span class="keyword">typedef</span> <span class="identifier">boost</span><span class="special">::</span><span class="identifier">chrono</span><span class="special">::</span><span class="identifier">stopclock_accumulator</span><span class="special"><</span> <span class="identifier">boost</span><span class="special">::</span><span class="identifier">chrono</span><span class="special">::</span><span class="identifier">monotonic_clock</span> <span class="special">></span>
+<span class="keyword">typedef</span> <span class="identifier">boost</span><span class="special">::</span><span class="identifier">stopwatches</span><span class="special">::</span><span class="identifier">stopclock_accumulator</span><span class="special"><</span> <span class="identifier">boost</span><span class="special">::</span><span class="identifier">chrono</span><span class="special">::</span><span class="identifier">monotonic_clock</span> <span class="special">></span>
<span class="identifier">monotonic_stopclock_accumulator</span><span class="special">;</span>
<span class="preprocessor">#endif</span>
-<span class="keyword">typedef</span> <span class="identifier">boost</span><span class="special">::</span><span class="identifier">chrono</span><span class="special">::</span><span class="identifier">stopclock_accumulator</span><span class="special"><</span> <span class="identifier">boost</span><span class="special">::</span><span class="identifier">chrono</span><span class="special">::</span><span class="identifier">high_resolution_clock</span> <span class="special">></span>
+<span class="keyword">typedef</span> <span class="identifier">boost</span><span class="special">::</span><span class="identifier">stopwatches</span><span class="special">::</span><span class="identifier">stopclock_accumulator</span><span class="special"><</span> <span class="identifier">boost</span><span class="special">::</span><span class="identifier">chrono</span><span class="special">::</span><span class="identifier">high_resolution_clock</span> <span class="special">></span>
<span class="identifier">high_resolution_stopclock_accumulator</span><span class="special">;</span>
-<span class="keyword">typedef</span> <span class="identifier">boost</span><span class="special">::</span><span class="identifier">chrono</span><span class="special">::</span><span class="identifier">stopclock_accumulator</span><span class="special"><</span> <span class="identifier">boost</span><span class="special">::</span><span class="identifier">chrono</span><span class="special">::</span><span class="identifier">process_real_cpu_clock</span> <span class="special">></span>
+<span class="keyword">typedef</span> <span class="identifier">boost</span><span class="special">::</span><span class="identifier">stopwatches</span><span class="special">::</span><span class="identifier">stopclock_accumulator</span><span class="special"><</span> <span class="identifier">boost</span><span class="special">::</span><span class="identifier">chrono</span><span class="special">::</span><span class="identifier">process_real_cpu_clock</span> <span class="special">></span>
<span class="identifier">process_real_cpu_stopclock_accumulator</span><span class="special">;</span>
-<span class="keyword">typedef</span> <span class="identifier">boost</span><span class="special">::</span><span class="identifier">chrono</span><span class="special">::</span><span class="identifier">stopclock_accumulator</span><span class="special"><</span> <span class="identifier">boost</span><span class="special">::</span><span class="identifier">chrono</span><span class="special">::</span><span class="identifier">process_user_cpu_clock</span> <span class="special">></span>
+<span class="keyword">typedef</span> <span class="identifier">boost</span><span class="special">::</span><span class="identifier">stopwatches</span><span class="special">::</span><span class="identifier">stopclock_accumulator</span><span class="special"><</span> <span class="identifier">boost</span><span class="special">::</span><span class="identifier">chrono</span><span class="special">::</span><span class="identifier">process_user_cpu_clock</span> <span class="special">></span>
<span class="identifier">process_user_cpu_stopclock_accumulator</span><span class="special">;</span>
-<span class="keyword">typedef</span> <span class="identifier">boost</span><span class="special">::</span><span class="identifier">chrono</span><span class="special">::</span><span class="identifier">stopclock_accumulator</span><span class="special"><</span> <span class="identifier">boost</span><span class="special">::</span><span class="identifier">chrono</span><span class="special">::</span><span class="identifier">process_system_cpu_clock</span> <span class="special">></span>
+<span class="keyword">typedef</span> <span class="identifier">boost</span><span class="special">::</span><span class="identifier">stopwatches</span><span class="special">::</span><span class="identifier">stopclock_accumulator</span><span class="special"><</span> <span class="identifier">boost</span><span class="special">::</span><span class="identifier">chrono</span><span class="special">::</span><span class="identifier">process_system_cpu_clock</span> <span class="special">></span>
<span class="identifier">process_system_cpu_stopclock_accumulator</span><span class="special">;</span>
</pre>
</div>
@@ -1008,19 +1008,19 @@
of <code class="computeroutput"><span class="identifier">Clock</span></code>, replacing clock
by wstopclock_accumulator.
</p>
-<pre class="programlisting"><span class="keyword">typedef</span> <span class="identifier">boost</span><span class="special">::</span><span class="identifier">chrono</span><span class="special">::</span><span class="identifier">wstopclock_accumulator</span><span class="special"><</span> <span class="identifier">boost</span><span class="special">::</span><span class="identifier">chrono</span><span class="special">::</span><span class="identifier">system_clock</span> <span class="special">></span>
+<pre class="programlisting"><span class="keyword">typedef</span> <span class="identifier">boost</span><span class="special">::</span><span class="identifier">stopwatches</span><span class="special">::</span><span class="identifier">wstopclock_accumulator</span><span class="special"><</span> <span class="identifier">boost</span><span class="special">::</span><span class="identifier">chrono</span><span class="special">::</span><span class="identifier">system_clock</span> <span class="special">></span>
<span class="identifier">system_wstopclock_accumulator</span><span class="special">;</span>
<span class="preprocessor">#ifdef</span> <code class="computeroutput"><span class="identifier">BOOST_CHRONO_HAS_CLOCK_MONOTONIC</span></code>
-<span class="keyword">typedef</span> <span class="identifier">boost</span><span class="special">::</span><span class="identifier">chrono</span><span class="special">::</span><span class="identifier">wstopclock_accumulator</span><span class="special"><</span> <span class="identifier">boost</span><span class="special">::</span><span class="identifier">chrono</span><span class="special">::</span><span class="identifier">monotonic_clock</span> <span class="special">></span>
+<span class="keyword">typedef</span> <span class="identifier">boost</span><span class="special">::</span><span class="identifier">stopwatches</span><span class="special">::</span><span class="identifier">wstopclock_accumulator</span><span class="special"><</span> <span class="identifier">boost</span><span class="special">::</span><span class="identifier">chrono</span><span class="special">::</span><span class="identifier">monotonic_clock</span> <span class="special">></span>
<span class="identifier">monotonic_wstopclock_accumulator</span><span class="special">;</span>
<span class="preprocessor">#endif</span>
-<span class="keyword">typedef</span> <span class="identifier">boost</span><span class="special">::</span><span class="identifier">chrono</span><span class="special">::</span><span class="identifier">wstopclock_accumulator</span><span class="special"><</span> <span class="identifier">boost</span><span class="special">::</span><span class="identifier">chrono</span><span class="special">::</span><span class="identifier">high_resolution_clock</span> <span class="special">></span>
+<span class="keyword">typedef</span> <span class="identifier">boost</span><span class="special">::</span><span class="identifier">stopwatches</span><span class="special">::</span><span class="identifier">wstopclock_accumulator</span><span class="special"><</span> <span class="identifier">boost</span><span class="special">::</span><span class="identifier">chrono</span><span class="special">::</span><span class="identifier">high_resolution_clock</span> <span class="special">></span>
<span class="identifier">high_resolution_wstopclock_accumulator</span><span class="special">;</span>
-<span class="keyword">typedef</span> <span class="identifier">boost</span><span class="special">::</span><span class="identifier">chrono</span><span class="special">::</span><span class="identifier">wstopclock_accumulator</span><span class="special"><</span> <span class="identifier">boost</span><span class="special">::</span><span class="identifier">chrono</span><span class="special">::</span><span class="identifier">process_real_cpu_clock</span> <span class="special">></span>
+<span class="keyword">typedef</span> <span class="identifier">boost</span><span class="special">::</span><span class="identifier">stopwatches</span><span class="special">::</span><span class="identifier">wstopclock_accumulator</span><span class="special"><</span> <span class="identifier">boost</span><span class="special">::</span><span class="identifier">chrono</span><span class="special">::</span><span class="identifier">process_real_cpu_clock</span> <span class="special">></span>
<span class="identifier">process_real_cpu_wstopclock_accumulator</span><span class="special">;</span>
-<span class="keyword">typedef</span> <span class="identifier">boost</span><span class="special">::</span><span class="identifier">chrono</span><span class="special">::</span><span class="identifier">wstopclock_accumulator</span><span class="special"><</span> <span class="identifier">boost</span><span class="special">::</span><span class="identifier">chrono</span><span class="special">::</span><span class="identifier">process_user_cpu_clock</span> <span class="special">></span>
+<span class="keyword">typedef</span> <span class="identifier">boost</span><span class="special">::</span><span class="identifier">stopwatches</span><span class="special">::</span><span class="identifier">wstopclock_accumulator</span><span class="special"><</span> <span class="identifier">boost</span><span class="special">::</span><span class="identifier">chrono</span><span class="special">::</span><span class="identifier">process_user_cpu_clock</span> <span class="special">></span>
<span class="identifier">process_user_cpu_wstopclock_accumulator</span><span class="special">;</span>
-<span class="keyword">typedef</span> <span class="identifier">boost</span><span class="special">::</span><span class="identifier">chrono</span><span class="special">::</span><span class="identifier">wstopclock_accumulator</span><span class="special"><</span> <span class="identifier">boost</span><span class="special">::</span><span class="identifier">chrono</span><span class="special">::</span><span class="identifier">process_system_cpu_clock</span> <span class="special">></span>
+<span class="keyword">typedef</span> <span class="identifier">boost</span><span class="special">::</span><span class="identifier">stopwatches</span><span class="special">::</span><span class="identifier">wstopclock_accumulator</span><span class="special"><</span> <span class="identifier">boost</span><span class="special">::</span><span class="identifier">chrono</span><span class="special">::</span><span class="identifier">process_system_cpu_clock</span> <span class="special">></span>
<span class="identifier">process_system_cpu_wstopclock_accumulator</span><span class="special">;</span>
</pre>
</div>
@@ -1028,12 +1028,12 @@
<div class="section" lang="en">
<div class="titlepage"><div><div><h4 class="title">
<a name="boost_stopwatches.reference.reporters.scoped_stopclock_hpp"></a><a href="reporters.html#boost_stopwatches.reference.reporters.scoped_stopclock_hpp" title="
- Header <boost/chrono/scoped_stopclock.hpp>">
- Header <code class="computeroutput"><span class="special"><</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">chrono</span><span class="special">/</span><span class="identifier">scoped_stopclock</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">></span></code></a>
+ Header <boost/stopwatches/scoped_stopclock.hpp>">
+ Header <code class="computeroutput"><span class="special"><</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">stopwatches</span><span class="special">/</span><span class="identifier">scoped_stopclock</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">></span></code></a>
</h4></div></div></div>
<div class="toc"><dl><dt><span class="section"><a href="reporters.html#boost_stopwatches.reference.reporters.scoped_stopclock_hpp.scoped_stopclock">
Template Class <code class="computeroutput"><span class="identifier">scoped_stopclock</span><span class="special"><></span></code></a></span></dt></dl></div>
-<pre class="programlisting"><span class="keyword">namespace</span> <span class="identifier">boost</span> <span class="special">{</span> <span class="keyword">namespace</span> <span class="identifier">chrono</span> <span class="special">{</span>
+<pre class="programlisting"><span class="keyword">namespace</span> <span class="identifier">boost</span> <span class="special">{</span> <span class="keyword">namespace</span> <span class="identifier">stopwatches</span> <span class="special">{</span>
<span class="keyword">template</span> <span class="special"><</span> <span class="keyword">class</span> <span class="identifier">Clock</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">Formatter</span> <span class="special">></span> <span class="keyword">class</span> <span class="identifier">scoped_stopclock</span><span class="special">;</span>
<span class="special">}}</span>
</pre>
@@ -1070,7 +1070,7 @@
<span class="special">}</span>
</pre>
<a name="boost_stopwatches.reference.reporters.scoped_stopclock_hpp.scoped_stopclock.synopsis"></a><h6>
-<a name="id5035029"></a>
+<a name="id5035445"></a>
<a href="reporters.html#boost_stopwatches.reference.reporters.scoped_stopclock_hpp.scoped_stopclock.synopsis">Synopsis</a>
</h6>
<pre class="programlisting"><span class="keyword">template</span> <span class="special"><</span> <span class="keyword">class</span> <span class="identifier">Clock</span><span class="special">=</span><span class="identifier">process_cpu_clock</span>
Modified: sandbox/chrono/libs/stopwatches/doc/html/boost_stopwatches/reference/stopwatches.html
==============================================================================
--- sandbox/chrono/libs/stopwatches/doc/html/boost_stopwatches/reference/stopwatches.html (original)
+++ sandbox/chrono/libs/stopwatches/doc/html/boost_stopwatches/reference/stopwatches.html 2010-09-04 08:19:57 EDT (Sat, 04 Sep 2010)
@@ -30,7 +30,7 @@
<dt><span class="section"><a href="stopwatches.html#boost_stopwatches.reference.stopwatches.stopwatches_hpp">
Header <code class="computeroutput"><span class="special"><</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">stopwatches</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">></span></code></a></span></dt>
<dt><span class="section"><a href="stopwatches.html#boost_stopwatches.reference.stopwatches.chrono_stopwatches_hpp">
- Header <code class="computeroutput"><span class="special"><</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">chrono</span><span class="special">/</span><span class="identifier">stopwatches</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">></span></code></a></span></dt>
+ Header <code class="computeroutput"><span class="special"><</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">stopwatches</span><span class="special">/</span><span class="identifier">stopwatches</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">></span></code></a></span></dt>
<dt><span class="section"><a href="stopwatches.html#boost_stopwatches.reference.stopwatches.stopwatch_req">
<code class="computeroutput"><span class="identifier">Stopwatch</span></code> Requirements</a></span></dt>
<dd><dl>
@@ -46,7 +46,7 @@
Member Function <code class="computeroutput"><span class="identifier">restart</span><span class="special">()</span></code></a></span></dt>
</dl></dd>
<dt><span class="section"><a href="stopwatches.html#boost_stopwatches.reference.stopwatches.lightweight_stopwatch_hpp">
- Header <code class="computeroutput"><span class="special"><</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">chrono</span><span class="special">/</span><span class="identifier">lightweight_stopwatch</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">></span></code></a></span></dt>
+ Header <code class="computeroutput"><span class="special"><</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">stopwatches</span><span class="special">/</span><span class="identifier">lightweight_stopwatch</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">></span></code></a></span></dt>
<dd><dl>
<dt><span class="section"><a href="stopwatches.html#boost_stopwatches.reference.stopwatches.lightweight_stopwatch_hpp.dont_start_t">
Class <code class="computeroutput"><span class="identifier">dont_start_t</span></code></a></span></dt>
@@ -54,7 +54,7 @@
Template Class <code class="computeroutput"><span class="identifier">lightweight_stopwatch</span><span class="special"><></span></code></a></span></dt>
</dl></dd>
<dt><span class="section"><a href="stopwatches.html#boost_stopwatches.reference.stopwatches.stopwatch_hpp">
- Header <code class="computeroutput"><span class="special"><</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">chrono</span><span class="special">/</span><span class="identifier">stopwatch</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">></span></code></a></span></dt>
+ Header <code class="computeroutput"><span class="special"><</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">stopwatches</span><span class="special">/</span><span class="identifier">stopwatch</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">></span></code></a></span></dt>
<dd><dl>
<dt><span class="section"><a href="stopwatches.html#boost_stopwatches.reference.stopwatches.stopwatch_hpp.stopwatch">
Template Class <code class="computeroutput"><span class="identifier">stopwatch</span><span class="special"><></span></code></a></span></dt>
@@ -65,7 +65,7 @@
<code class="computeroutput"><span class="identifier">stopwatch</span></code> useful typedefs</a></span></dt>
</dl></dd>
<dt><span class="section"><a href="stopwatches.html#boost_stopwatches.reference.stopwatches.stopwatch_accumulator_hpp">
- Header <code class="computeroutput"><span class="special"><</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">chrono</span><span class="special">/</span><span class="identifier">stopwatch_accumulator</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">></span></code></a></span></dt>
+ Header <code class="computeroutput"><span class="special"><</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">stopwatches</span><span class="special">/</span><span class="identifier">stopwatch_accumulator</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">></span></code></a></span></dt>
<dd><dl>
<dt><span class="section"><a href="stopwatches.html#boost_stopwatches.reference.stopwatches.stopwatch_accumulator_hpp.stopwatch_accumulator">
Template Class <code class="computeroutput"><span class="identifier">stopwatch_accumulator</span><span class="special"><></span></code></a></span></dt>
@@ -77,7 +77,7 @@
typedefs</a></span></dt>
</dl></dd>
<dt><span class="section"><a href="stopwatches.html#boost_stopwatches.reference.stopwatches.stopwatch_scoped_hpp">
- Header <code class="computeroutput"><span class="special"><</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">chrono</span><span class="special">/</span><span class="identifier">stopwatch_scoped</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">></span></code></a></span></dt>
+ Header <code class="computeroutput"><span class="special"><</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">stopwatches</span><span class="special">/</span><span class="identifier">stopwatch_scoped</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">></span></code></a></span></dt>
<dd><dl>
<dt><span class="section"><a href="stopwatches.html#boost_stopwatches.reference.stopwatches.stopwatch_scoped_hpp.stopwatch_runner">
Template Class <code class="computeroutput"><span class="identifier">stopwatch_runner</span><span class="special"><></span></code></a></span></dt>
@@ -96,32 +96,32 @@
<p>
This file include all the stopwatches related files
</p>
-<pre class="programlisting"><span class="preprocessor">#include</span> <span class="special"><</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">chrono</span><span class="special">/</span><span class="identifier">stopwatches</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">></span>
+<pre class="programlisting"><span class="preprocessor">#include</span> <span class="special"><</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">stopwatches</span><span class="special">/</span><span class="identifier">stopwatches</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">></span>
</pre>
</div>
<div class="section" lang="en">
<div class="titlepage"><div><div><h4 class="title">
<a name="boost_stopwatches.reference.stopwatches.chrono_stopwatches_hpp"></a><a href="stopwatches.html#boost_stopwatches.reference.stopwatches.chrono_stopwatches_hpp" title="
- Header <boost/chrono/stopwatches.hpp>">
- Header <code class="computeroutput"><span class="special"><</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">chrono</span><span class="special">/</span><span class="identifier">stopwatches</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">></span></code></a>
+ Header <boost/stopwatches/stopwatches.hpp>">
+ Header <code class="computeroutput"><span class="special"><</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">stopwatches</span><span class="special">/</span><span class="identifier">stopwatches</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">></span></code></a>
</h4></div></div></div>
<p>
This file include all the stopwatches related files
</p>
-<pre class="programlisting"><span class="preprocessor">#include</span> <span class="special"><</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">chrono</span><span class="special">/</span><span class="identifier">scoped_stopclock</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">></span>
-<span class="preprocessor">#include</span> <span class="special"><</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">chrono</span><span class="special">/</span><span class="identifier">process_cpu_clocks</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">></span>
-<span class="preprocessor">#include</span> <span class="special"><</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">chrono</span><span class="special">/</span><span class="identifier">stopclock</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">></span>
-<span class="preprocessor">#include</span> <span class="special"><</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">chrono</span><span class="special">/</span><span class="identifier">stopclock_accumulator</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">></span>
-<span class="preprocessor">#include</span> <span class="special"><</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">chrono</span><span class="special">/</span><span class="identifier">stopwatch</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">></span>
-<span class="preprocessor">#include</span> <span class="special"><</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">chrono</span><span class="special">/</span><span class="identifier">stopwatch_accumulator</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">></span>
-<span class="preprocessor">#include</span> <span class="special"><</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">chrono</span><span class="special">/</span><span class="identifier">stopwatch_accumulator_formatter</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">></span>
-<span class="preprocessor">#include</span> <span class="special"><</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">chrono</span><span class="special">/</span><span class="identifier">stopwatch_accumulator_time_formatter</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">></span>
-<span class="preprocessor">#include</span> <span class="special"><</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">chrono</span><span class="special">/</span><span class="identifier">stopwatch_formatter</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">></span>
-<span class="preprocessor">#include</span> <span class="special"><</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">chrono</span><span class="special">/</span><span class="identifier">stopwatch_reporter</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">></span>
-<span class="preprocessor">#include</span> <span class="special"><</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">chrono</span><span class="special">/</span><span class="identifier">stopwatch_scoped</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">></span>
-<span class="preprocessor">#include</span> <span class="special"><</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">chrono</span><span class="special">/</span><span class="identifier">time_formatter</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">></span>
-<span class="preprocessor">#include</span> <span class="special"><</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">chrono</span><span class="special">/</span><span class="identifier">t24_hours</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">></span>
-<span class="preprocessor">#include</span> <span class="special"><</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">chrono</span><span class="special">/</span><span class="identifier">t24_hours_formatter</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">></span>
+<pre class="programlisting"><span class="preprocessor">#include</span> <span class="special"><</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">stopwatches</span><span class="special">/</span><span class="identifier">scoped_stopclock</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">></span>
+<span class="preprocessor">#include</span> <span class="special"><</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">stopwatches</span><span class="special">/</span><span class="identifier">process_cpu_clocks</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">></span>
+<span class="preprocessor">#include</span> <span class="special"><</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">stopwatches</span><span class="special">/</span><span class="identifier">stopclock</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">></span>
+<span class="preprocessor">#include</span> <span class="special"><</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">stopwatches</span><span class="special">/</span><span class="identifier">stopclock_accumulator</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">></span>
+<span class="preprocessor">#include</span> <span class="special"><</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">stopwatches</span><span class="special">/</span><span class="identifier">stopwatch</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">></span>
+<span class="preprocessor">#include</span> <span class="special"><</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">stopwatches</span><span class="special">/</span><span class="identifier">stopwatch_accumulator</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">></span>
+<span class="preprocessor">#include</span> <span class="special"><</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">stopwatches</span><span class="special">/</span><span class="identifier">stopwatch_accumulator_formatter</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">></span>
+<span class="preprocessor">#include</span> <span class="special"><</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">stopwatches</span><span class="special">/</span><span class="identifier">stopwatch_accumulator_time_formatter</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">></span>
+<span class="preprocessor">#include</span> <span class="special"><</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">stopwatches</span><span class="special">/</span><span class="identifier">stopwatch_formatter</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">></span>
+<span class="preprocessor">#include</span> <span class="special"><</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">stopwatches</span><span class="special">/</span><span class="identifier">stopwatch_reporter</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">></span>
+<span class="preprocessor">#include</span> <span class="special"><</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">stopwatches</span><span class="special">/</span><span class="identifier">stopwatch_scoped</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">></span>
+<span class="preprocessor">#include</span> <span class="special"><</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">stopwatches</span><span class="special">/</span><span class="identifier">time_formatter</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">></span>
+<span class="preprocessor">#include</span> <span class="special"><</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">stopwatches</span><span class="special">/</span><span class="identifier">t24_hours</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">></span>
+<span class="preprocessor">#include</span> <span class="special"><</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">stopwatches</span><span class="special">/</span><span class="identifier">t24_hours_formatter</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">></span>
</pre>
</div>
<div class="section" lang="en">
@@ -493,8 +493,8 @@
<div class="section" lang="en">
<div class="titlepage"><div><div><h4 class="title">
<a name="boost_stopwatches.reference.stopwatches.lightweight_stopwatch_hpp"></a><a href="stopwatches.html#boost_stopwatches.reference.stopwatches.lightweight_stopwatch_hpp" title="
- Header <boost/chrono/lightweight_stopwatch.hpp>">
- Header <code class="computeroutput"><span class="special"><</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">chrono</span><span class="special">/</span><span class="identifier">lightweight_stopwatch</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">></span></code></a>
+ Header <boost/stopwatches/lightweight_stopwatch.hpp>">
+ Header <code class="computeroutput"><span class="special"><</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">stopwatches</span><span class="special">/</span><span class="identifier">lightweight_stopwatch</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">></span></code></a>
</h4></div></div></div>
<div class="toc"><dl>
<dt><span class="section"><a href="stopwatches.html#boost_stopwatches.reference.stopwatches.lightweight_stopwatch_hpp.dont_start_t">
@@ -502,7 +502,7 @@
<dt><span class="section"><a href="stopwatches.html#boost_stopwatches.reference.stopwatches.lightweight_stopwatch_hpp.lightweight_stopwatch">
Template Class <code class="computeroutput"><span class="identifier">lightweight_stopwatch</span><span class="special"><></span></code></a></span></dt>
</dl></div>
-<pre class="programlisting"><span class="keyword">namespace</span> <span class="identifier">boost</span> <span class="special">{</span> <span class="keyword">namespace</span> <span class="identifier">chrono</span> <span class="special">{</span>
+<pre class="programlisting"><span class="keyword">namespace</span> <span class="identifier">boost</span> <span class="special">{</span> <span class="keyword">namespace</span> <span class="identifier">stopwatches</span> <span class="special">{</span>
<span class="keyword">struct</span> <span class="identifier">dont_start_t</span><span class="special">;</span>
<span class="keyword">static</span> <span class="keyword">const</span> <span class="identifier">dont_start_t</span> <span class="identifier">dont_start</span><span class="special">;</span>
@@ -699,8 +699,8 @@
<div class="section" lang="en">
<div class="titlepage"><div><div><h4 class="title">
<a name="boost_stopwatches.reference.stopwatches.stopwatch_hpp"></a><a href="stopwatches.html#boost_stopwatches.reference.stopwatches.stopwatch_hpp" title="
- Header <boost/chrono/stopwatch.hpp>">
- Header <code class="computeroutput"><span class="special"><</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">chrono</span><span class="special">/</span><span class="identifier">stopwatch</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">></span></code></a>
+ Header <boost/stopwatches/stopwatch.hpp>">
+ Header <code class="computeroutput"><span class="special"><</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">stopwatches</span><span class="special">/</span><span class="identifier">stopwatch</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">></span></code></a>
</h4></div></div></div>
<div class="toc"><dl>
<dt><span class="section"><a href="stopwatches.html#boost_stopwatches.reference.stopwatches.stopwatch_hpp.stopwatch">
@@ -711,7 +711,7 @@
<dt><span class="section"><a href="stopwatches.html#boost_stopwatches.reference.stopwatches.stopwatch_hpp.stopwatch_typedefs">
<code class="computeroutput"><span class="identifier">stopwatch</span></code> useful typedefs</a></span></dt>
</dl></div>
-<pre class="programlisting"><span class="keyword">namespace</span> <span class="identifier">boost</span> <span class="special">{</span> <span class="keyword">namespace</span> <span class="identifier">chrono</span> <span class="special">{</span>
+<pre class="programlisting"><span class="keyword">namespace</span> <span class="identifier">boost</span> <span class="special">{</span> <span class="keyword">namespace</span> <span class="identifier">stopwatches</span> <span class="special">{</span>
<span class="keyword">template</span> <span class="special"><</span><span class="keyword">class</span> <span class="identifier">Clock</span><span class="special">=</span><span class="identifier">high_resolution_clock</span><span class="special">></span> <span class="keyword">class</span> <a href="stopwatches.html#boost_stopwatches.reference.stopwatches.stopwatch_hpp.stopwatch" title="
Template Class stopwatch<>"><code class="computeroutput"><span class="identifier">stopwatch</span></code></a><span class="special">;</span>
@@ -849,13 +849,13 @@
<p>
The library provides stopwatch short cuts for all the models of <code class="computeroutput"><span class="identifier">Clock</span></code>, replacing clock by stopwatch.
</p>
-<pre class="programlisting"><span class="keyword">typedef</span> <span class="identifier">boost</span><span class="special">::</span><span class="identifier">chrono</span><span class="special">::</span><span class="identifier">stopwatch</span><span class="special"><</span> <span class="identifier">boost</span><span class="special">::</span><span class="identifier">chrono</span><span class="special">::</span><span class="identifier">system_clock</span> <span class="special">></span>
+<pre class="programlisting"><span class="keyword">typedef</span> <span class="identifier">boost</span><span class="special">::</span><span class="identifier">stopwatches</span><span class="special">::</span><span class="identifier">stopwatch</span><span class="special"><</span> <span class="identifier">boost</span><span class="special">::</span><span class="identifier">chrono</span><span class="special">::</span><span class="identifier">system_clock</span> <span class="special">></span>
<span class="identifier">system_stopwatch</span><span class="special">;</span>
<span class="preprocessor">#ifdef</span> <code class="computeroutput"><span class="identifier">BOOST_CHRONO_HAS_CLOCK_MONOTONIC</span></code>
-<span class="keyword">typedef</span> <span class="identifier">boost</span><span class="special">::</span><span class="identifier">chrono</span><span class="special">::</span><span class="identifier">stopwatch</span><span class="special"><</span> <span class="identifier">boost</span><span class="special">::</span><span class="identifier">chrono</span><span class="special">::</span><span class="identifier">monotonic_clock</span> <span class="special">></span>
+<span class="keyword">typedef</span> <span class="identifier">boost</span><span class="special">::</span><span class="identifier">stopwatches</span><span class="special">::</span><span class="identifier">stopwatch</span><span class="special"><</span> <span class="identifier">boost</span><span class="special">::</span><span class="identifier">chrono</span><span class="special">::</span><span class="identifier">monotonic_clock</span> <span class="special">></span>
<span class="identifier">monotonic_stopwatch</span><span class="special">;</span>
<span class="preprocessor">#endif</span>
-<span class="keyword">typedef</span> <span class="identifier">boost</span><span class="special">::</span><span class="identifier">chrono</span><span class="special">::</span><span class="identifier">stopwatch</span><span class="special"><</span> <span class="identifier">boost</span><span class="special">::</span><span class="identifier">chrono</span><span class="special">::</span><span class="identifier">high_resolution_clock</span> <span class="special">></span>
+<span class="keyword">typedef</span> <span class="identifier">boost</span><span class="special">::</span><span class="identifier">stopwatches</span><span class="special">::</span><span class="identifier">stopwatch</span><span class="special"><</span> <span class="identifier">boost</span><span class="special">::</span><span class="identifier">chrono</span><span class="special">::</span><span class="identifier">high_resolution_clock</span> <span class="special">></span>
<span class="identifier">high_resolution_stopwatch</span><span class="special">;</span>
</pre>
</div>
@@ -863,8 +863,8 @@
<div class="section" lang="en">
<div class="titlepage"><div><div><h4 class="title">
<a name="boost_stopwatches.reference.stopwatches.stopwatch_accumulator_hpp"></a><a href="stopwatches.html#boost_stopwatches.reference.stopwatches.stopwatch_accumulator_hpp" title="
- Header <boost/chrono/stopwatch_accumulator.hpp>">
- Header <code class="computeroutput"><span class="special"><</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">chrono</span><span class="special">/</span><span class="identifier">stopwatch_accumulator</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">></span></code></a>
+ Header <boost/stopwatches/stopwatch_accumulator.hpp>">
+ Header <code class="computeroutput"><span class="special"><</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">stopwatches</span><span class="special">/</span><span class="identifier">stopwatch_accumulator</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">></span></code></a>
</h4></div></div></div>
<div class="toc"><dl>
<dt><span class="section"><a href="stopwatches.html#boost_stopwatches.reference.stopwatches.stopwatch_accumulator_hpp.stopwatch_accumulator">
@@ -876,7 +876,7 @@
<code class="computeroutput"><span class="identifier">stopwatch_accumulator</span></code> useful
typedefs</a></span></dt>
</dl></div>
-<pre class="programlisting"><span class="keyword">namespace</span> <span class="identifier">boost</span> <span class="special">{</span> <span class="keyword">namespace</span> <span class="identifier">chrono</span> <span class="special">{</span>
+<pre class="programlisting"><span class="keyword">namespace</span> <span class="identifier">boost</span> <span class="special">{</span> <span class="keyword">namespace</span> <span class="identifier">stopwatches</span> <span class="special">{</span>
<span class="keyword">template</span> <span class="special"><</span><span class="keyword">class</span> <span class="identifier">Clock</span><span class="special">,</span>
<span class="keyword">typename</span> <span class="identifier">Features</span><span class="special">=</span><span class="identifier">accumulators</span><span class="special">::</span><span class="identifier">features</span><span class="special"><</span>
<span class="identifier">accumulators</span><span class="special">::</span><span class="identifier">tag</span><span class="special">::</span><span class="identifier">count</span><span class="special">,</span>
@@ -984,13 +984,13 @@
of <code class="computeroutput"><span class="identifier">Clock</span></code>, replacing clock
by stopwatch_accumulator.
</p>
-<pre class="programlisting"><span class="keyword">typedef</span> <span class="identifier">boost</span><span class="special">::</span><span class="identifier">chrono</span><span class="special">::</span><span class="identifier">stopwatch_accumulator</span><span class="special"><</span> <span class="identifier">boost</span><span class="special">::</span><span class="identifier">chrono</span><span class="special">::</span><span class="identifier">system_clock</span> <span class="special">></span>
+<pre class="programlisting"><span class="keyword">typedef</span> <span class="identifier">boost</span><span class="special">::</span><span class="identifier">stopwatches</span><span class="special">::</span><span class="identifier">stopwatch_accumulator</span><span class="special"><</span> <span class="identifier">boost</span><span class="special">::</span><span class="identifier">chrono</span><span class="special">::</span><span class="identifier">system_clock</span> <span class="special">></span>
<span class="identifier">system_stopwatch_accumulator</span><span class="special">;</span>
<span class="preprocessor">#ifdef</span> <code class="computeroutput"><span class="identifier">BOOST_CHRONO_HAS_CLOCK_MONOTONIC</span></code>
-<span class="keyword">typedef</span> <span class="identifier">boost</span><span class="special">::</span><span class="identifier">chrono</span><span class="special">::</span><span class="identifier">stopwatch_accumulator</span><span class="special"><</span> <span class="identifier">boost</span><span class="special">::</span><span class="identifier">chrono</span><span class="special">::</span><span class="identifier">monotonic_clock</span> <span class="special">></span>
+<span class="keyword">typedef</span> <span class="identifier">boost</span><span class="special">::</span><span class="identifier">stopwatches</span><span class="special">::</span><span class="identifier">stopwatch_accumulator</span><span class="special"><</span> <span class="identifier">boost</span><span class="special">::</span><span class="identifier">chrono</span><span class="special">::</span><span class="identifier">monotonic_clock</span> <span class="special">></span>
<span class="identifier">monotonic_stopwatch_accumulator</span><span class="special">;</span>
<span class="preprocessor">#endif</span>
-<span class="keyword">typedef</span> <span class="identifier">boost</span><span class="special">::</span><span class="identifier">chrono</span><span class="special">::</span><span class="identifier">stopwatch_accumulator</span><span class="special"><</span> <span class="identifier">boost</span><span class="special">::</span><span class="identifier">chrono</span><span class="special">::</span><span class="identifier">high_resolution_clock</span> <span class="special">></span>
+<span class="keyword">typedef</span> <span class="identifier">boost</span><span class="special">::</span><span class="identifier">stopwatches</span><span class="special">::</span><span class="identifier">stopwatch_accumulator</span><span class="special"><</span> <span class="identifier">boost</span><span class="special">::</span><span class="identifier">chrono</span><span class="special">::</span><span class="identifier">high_resolution_clock</span> <span class="special">></span>
<span class="identifier">high_resolution_stopwatch_accumulator</span><span class="special">;</span>
</pre>
</div>
@@ -998,8 +998,8 @@
<div class="section" lang="en">
<div class="titlepage"><div><div><h4 class="title">
<a name="boost_stopwatches.reference.stopwatches.stopwatch_scoped_hpp"></a><a href="stopwatches.html#boost_stopwatches.reference.stopwatches.stopwatch_scoped_hpp" title="
- Header <boost/chrono/stopwatch_scoped.hpp>">
- Header <code class="computeroutput"><span class="special"><</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">chrono</span><span class="special">/</span><span class="identifier">stopwatch_scoped</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">></span></code></a>
+ Header <boost/stopwatches/stopwatch_scoped.hpp>">
+ Header <code class="computeroutput"><span class="special"><</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">stopwatches</span><span class="special">/</span><span class="identifier">stopwatch_scoped</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">></span></code></a>
</h4></div></div></div>
<div class="toc"><dl>
<dt><span class="section"><a href="stopwatches.html#boost_stopwatches.reference.stopwatches.stopwatch_scoped_hpp.stopwatch_runner">
@@ -1009,7 +1009,7 @@
<dt><span class="section"><a href="stopwatches.html#boost_stopwatches.reference.stopwatches.stopwatch_scoped_hpp.stopwatch_resumer">
Template Class <code class="computeroutput"><span class="identifier">stopwatch_resumer</span><span class="special"><></span></code></a></span></dt>
</dl></div>
-<pre class="programlisting"><span class="keyword">namespace</span> <span class="identifier">boost</span> <span class="special">{</span> <span class="keyword">namespace</span> <span class="identifier">chrono</span> <span class="special">{</span>
+<pre class="programlisting"><span class="keyword">namespace</span> <span class="identifier">boost</span> <span class="special">{</span> <span class="keyword">namespace</span> <span class="identifier">stopwatches</span> <span class="special">{</span>
<span class="keyword">template</span> <span class="special"><</span><span class="keyword">class</span> <span class="identifier">Stopwatch</span><span class="special">></span> <span class="keyword">class</span> <span class="identifier">stopwatch_runner</span><span class="special">;</span>
<span class="keyword">template</span> <span class="special"><</span><span class="keyword">class</span> <span class="identifier">Stopwatch</span><span class="special">></span> <span class="keyword">class</span> <span class="identifier">stopwatch_suspender</span><span class="special">;</span>
<span class="keyword">template</span> <span class="special"><</span><span class="keyword">class</span> <span class="identifier">Stopwatch</span><span class="special">></span> <span class="keyword">class</span> <span class="identifier">stopwatch_resumer</span><span class="special">;</span>
Modified: sandbox/chrono/libs/stopwatches/doc/html/boost_stopwatches/users_guide.html
==============================================================================
--- sandbox/chrono/libs/stopwatches/doc/html/boost_stopwatches/users_guide.html (original)
+++ sandbox/chrono/libs/stopwatches/doc/html/boost_stopwatches/users_guide.html 2010-09-04 08:19:57 EDT (Sat, 04 Sep 2010)
@@ -42,6 +42,8 @@
and Stopclocks</a></span></dt>
<dt><span class="section">Formatters</span></dt>
</dl></dd>
+<dt><span class="section">Examples</span></dt>
+<dd><dl><dt><span class="section">Reporting</span></dt></dl></dd>
</dl></div>
</div>
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
Added: sandbox/chrono/libs/stopwatches/doc/html/boost_stopwatches/users_guide/examples.html
==============================================================================
--- (empty file)
+++ sandbox/chrono/libs/stopwatches/doc/html/boost_stopwatches/users_guide/examples.html 2010-09-04 08:19:57 EDT (Sat, 04 Sep 2010)
@@ -0,0 +1,201 @@
+<html>
+<head>
+<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII">
+<title>Examples</title>
+<link rel="stylesheet" href="../../../../../../doc/html/boostbook.css" type="text/css">
+<meta name="generator" content="DocBook XSL Stylesheets V1.69.1">
+<link rel="start" href="../../index.html" title="Boost.Stopwatches">
+<link rel="up" href="../users_guide.html" title=" Users'Guide">
+<link rel="prev" href="tutorial.html" title="Tutorial">
+<link rel="next" href="../reference.html" title=" Reference ">
+</head>
+<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
+<table cellpadding="2" width="100%"><tr>
+<td valign="top"><img alt="Boost C++ Libraries" width="277" height="86" src="../../../../../../boost.png"></td>
+<td align="center">Home</td>
+<td align="center">Libraries</td>
+<td align="center">People</td>
+<td align="center">FAQ</td>
+<td align="center">More</td>
+</tr></table>
+<hr>
+<div class="spirit-nav">
+<a accesskey="p" href="tutorial.html"><img src="../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../users_guide.html"><img src="../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../index.html"><img src="../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="../reference.html"><img src="../../../../../../doc/src/images/next.png" alt="Next"></a>
+</div>
+<div class="section" lang="en">
+<div class="titlepage"><div><div><h3 class="title">
+<a name="boost_stopwatches.users_guide.examples"></a>Examples
+</h3></div></div></div>
+<div class="toc"><dl>
+<dt><span class="section">Reporting</span></dt>
+<dd><dl>
+<dt><span class="section">stopclock_example.cpp</span></dt>
+<dt><span class="section">stopclock_example2.cpp</span></dt>
+<dt><span class="section"><a href="examples.html#boost_stopwatches.users_guide.examples.reporting.time_command">time
+ command</a></span></dt>
+</dl></dd>
+</dl></div>
+<div class="section" lang="en">
+<div class="titlepage"><div><div><h4 class="title">
+<a name="boost_stopwatches.users_guide.examples.reporting"></a>Reporting
+</h4></div></div></div>
+<div class="toc"><dl>
+<dt><span class="section">stopclock_example.cpp</span></dt>
+<dt><span class="section">stopclock_example2.cpp</span></dt>
+<dt><span class="section"><a href="examples.html#boost_stopwatches.users_guide.examples.reporting.time_command">time
+ command</a></span></dt>
+</dl></div>
+<div class="section" lang="en">
+<div class="titlepage"><div><div><h5 class="title">
+<a name="boost_stopwatches.users_guide.examples.reporting.stopclock_example_cpp"></a>stopclock_example.cpp
+</h5></div></div></div>
+<p>
+ Here is the stopclock_example.cpp program supplied with the Boost Chrono
+ library:
+ </p>
+<p>
+ When the <code class="computeroutput"><span class="identifier">stopclock</span><span class="special"><></span>
+ <span class="identifier">t</span></code> object is created, it starts
+ timing. When it is destroyed at the end of the program, its destructor
+ stops the time counting and displays timing information on cout.
+ </p>
+<pre class="programlisting"><span class="preprocessor">#include</span> <span class="special"><</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">stopwatches</span><span class="special">/</span><span class="identifier">stopclock</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">></span>
+<span class="preprocessor">#include</span> <span class="special"><</span><span class="identifier">cmath</span><span class="special">></span>
+
+<span class="keyword">int</span> <span class="identifier">main</span><span class="special">()</span>
+<span class="special">{</span>
+ <span class="identifier">boost</span><span class="special">::</span><span class="identifier">stopwatches</span><span class="special">::</span><a href="../reference/reporters.html#boost_stopwatches.reference.reporters.stopclock_hpp.stopclock" title="
+ Template Class stopclock<>"><code class="computeroutput"><span class="identifier">stopclock</span></code></a><span class="special"><></span> <span class="identifier">t</span><span class="special">;</span>
+
+ <span class="keyword">for</span> <span class="special">(</span> <span class="keyword">long</span> <span class="identifier">i</span> <span class="special">=</span> <span class="number">0</span><span class="special">;</span> <span class="identifier">i</span> <span class="special"><</span> <span class="number">10000000</span><span class="special">;</span> <span class="special">++</span><span class="identifier">i</span> <span class="special">)</span>
+ <span class="identifier">std</span><span class="special">::</span><span class="identifier">sqrt</span><span class="special">(</span> <span class="number">123.456L</span> <span class="special">);</span> <span class="comment">// burn some time
+</span>
+ <span class="keyword">return</span> <span class="number">0</span><span class="special">;</span>
+<span class="special">}</span>
+</pre>
+<p>
+ The output of this program run looks like this:
+ </p>
+<pre class="programlisting"><span class="identifier">wall</span> <span class="number">0.42</span> <span class="identifier">s</span><span class="special">,</span> <span class="identifier">user</span> <span class="number">0.41</span> <span class="identifier">s</span> <span class="special">+</span> <span class="identifier">system</span> <span class="number">0.00</span> <span class="identifier">s</span> <span class="special">=</span> <span class="identifier">total</span> <span class="identifier">cpu</span> <span class="number">0.41</span> <span class="identifier">s</span><span class="special">,</span> <span class="special">(</span><span class="number">96.3</span><span class="special">%)</span>
+</pre>
+<p>
+ In other words, this program ran in 0.42 seconds as would be measured
+ by a clock on the wall, the operating system charged it for 0.41 seconds
+ of user CPU time and 0 seconds of system CPU time, the total of these
+ two was 0.41, and that represented 96.3 percent of the wall clock time.
+ </p>
+<p>
+ <span class="emphasis"><em>See the source file example/stopclock_example.cpp</em></span>
+ </p>
+</div>
+<div class="section" lang="en">
+<div class="titlepage"><div><div><h5 class="title">
+<a name="boost_stopwatches.users_guide.examples.reporting.stopclock_example2_cpp"></a>stopclock_example2.cpp
+</h5></div></div></div>
+<p>
+ The stopclock_example2.cpp program is the same, except that it supplies
+ additional constructor arguments from the command line:
+ </p>
+<pre class="programlisting"><span class="preprocessor">#include</span> <span class="special"><</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">stopwatches</span><span class="special">/</span><span class="identifier">stopclock</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">></span>
+<span class="preprocessor">#include</span> <span class="special"><</span><span class="identifier">cmath</span><span class="special">></span>
+
+<span class="keyword">int</span> <span class="identifier">main</span><span class="special">(</span> <span class="keyword">int</span> <span class="identifier">argc</span><span class="special">,</span> <span class="keyword">char</span> <span class="special">*</span> <span class="identifier">argv</span><span class="special">[]</span> <span class="special">)</span>
+<span class="special">{</span>
+ <span class="keyword">const</span> <span class="keyword">char</span> <span class="special">*</span> <span class="identifier">format</span> <span class="special">=</span> <span class="identifier">argc</span> <span class="special">></span> <span class="number">1</span> <span class="special">?</span> <span class="identifier">argv</span><span class="special">[</span><span class="number">1</span><span class="special">]</span> <span class="special">:</span> <span class="string">"%t cpu seconds\n"</span><span class="special">;</span>
+ <span class="keyword">int</span> <span class="identifier">places</span> <span class="special">=</span> <span class="identifier">argc</span> <span class="special">></span> <span class="number">2</span> <span class="special">?</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">atoi</span><span class="special">(</span> <span class="identifier">argv</span><span class="special">[</span><span class="number">2</span><span class="special">]</span> <span class="special">)</span> <span class="special">:</span> <span class="number">2</span><span class="special">;</span>
+
+ <span class="identifier">boost</span><span class="special">::</span><span class="identifier">stopwatches</span><span class="special">::</span><a href="../reference/reporters.html#boost_stopwatches.reference.reporters.stopclock_hpp.stopclock" title="
+ Template Class stopclock<>"><code class="computeroutput"><span class="identifier">stopclock</span></code></a><span class="special"><></span> <span class="identifier">t</span><span class="special">(</span> <span class="identifier">format</span><span class="special">,</span> <span class="identifier">places</span> <span class="special">);</span>
+
+ <span class="keyword">for</span> <span class="special">(</span> <span class="keyword">long</span> <span class="identifier">i</span> <span class="special">=</span> <span class="number">0</span><span class="special">;</span> <span class="identifier">i</span> <span class="special"><</span> <span class="number">10000000</span><span class="special">;</span> <span class="special">++</span><span class="identifier">i</span> <span class="special">)</span>
+ <span class="identifier">std</span><span class="special">::</span><span class="identifier">sqrt</span><span class="special">(</span> <span class="number">123.456L</span> <span class="special">);</span> <span class="comment">// burn some time
+</span>
+ <span class="keyword">return</span> <span class="number">0</span><span class="special">;</span>
+<span class="special">}</span>
+</pre>
+<p>
+ Here is the output for this program for several sets of command line
+ arguments:
+ </p>
+<pre class="programlisting"><span class="identifier">stopclock_example2</span>
+<span class="number">0.42</span> <span class="identifier">cpu</span> <span class="identifier">seconds</span>
+
+<span class="identifier">stopclock_example2</span> <span class="string">"%w wall clock seconds\n"</span>
+<span class="number">0.41</span> <span class="identifier">wall</span> <span class="identifier">clock</span> <span class="identifier">seconds</span>
+
+<span class="identifier">stopclock_example2</span> <span class="string">"%w wall clock seconds\n"</span> <span class="number">6</span>
+<span class="number">0.421875</span> <span class="identifier">wall</span> <span class="identifier">clock</span> <span class="identifier">seconds</span>
+
+<span class="identifier">stopclock_example2</span> <span class="string">"%t total CPU seconds\n"</span> <span class="number">3</span>
+<span class="number">0.422</span> <span class="identifier">total</span> <span class="identifier">CPU</span> <span class="identifier">seconds</span>
+</pre>
+<p>
+ <span class="emphasis"><em>See the source file example/stopclock_example2.cpp</em></span>
+ </p>
+</div>
+<div class="section" lang="en">
+<div class="titlepage"><div><div><h5 class="title">
+<a name="boost_stopwatches.users_guide.examples.reporting.time_command"></a><a href="examples.html#boost_stopwatches.users_guide.examples.reporting.time_command" title="time
+ command">time
+ command</a>
+</h5></div></div></div>
+<pre class="programlisting"><span class="preprocessor">#include</span> <span class="special"><</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">stopwatches</span><span class="special">/</span><span class="identifier">stopclock</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">></span>
+<span class="preprocessor">#include</span> <span class="special"><</span><span class="identifier">cstdlib</span><span class="special">></span>
+<span class="preprocessor">#include</span> <span class="special"><</span><span class="identifier">string</span><span class="special">></span>
+<span class="preprocessor">#include</span> <span class="special"><</span><span class="identifier">iostream</span><span class="special">></span>
+
+<span class="keyword">int</span> <span class="identifier">main</span><span class="special">(</span> <span class="keyword">int</span> <span class="identifier">argc</span><span class="special">,</span> <span class="keyword">char</span> <span class="special">*</span> <span class="identifier">argv</span><span class="special">[]</span> <span class="special">)</span>
+<span class="special">{</span>
+ <span class="keyword">if</span> <span class="special">(</span> <span class="identifier">argc</span> <span class="special">==</span> <span class="number">1</span> <span class="special">)</span>
+ <span class="special">{</span>
+ <span class="identifier">std</span><span class="special">::</span><span class="identifier">cout</span> <span class="special"><<</span> <span class="string">"invoke: timex [-v] command [args...]\n"</span>
+ <span class="string">" command will be executed and timings displayed\n"</span>
+ <span class="string">" -v option causes command and args to be displayed\n"</span><span class="special">;</span>
+ <span class="keyword">return</span> <span class="number">1</span><span class="special">;</span>
+ <span class="special">}</span>
+
+ <span class="identifier">std</span><span class="special">::</span><span class="identifier">string</span> <span class="identifier">s</span><span class="special">;</span>
+
+ <span class="keyword">bool</span> <span class="identifier">verbose</span> <span class="special">=</span> <span class="keyword">false</span><span class="special">;</span>
+ <span class="keyword">if</span> <span class="special">(</span> <span class="identifier">argc</span> <span class="special">></span> <span class="number">1</span> <span class="special">&&</span> <span class="special">*</span><span class="identifier">argv</span><span class="special">[</span><span class="number">1</span><span class="special">]</span> <span class="special">==</span> <span class="char">'-'</span> <span class="special">&&</span> <span class="special">*(</span><span class="identifier">argv</span><span class="special">[</span><span class="number">1</span><span class="special">]+</span><span class="number">1</span><span class="special">)</span> <span class="special">==</span> <span class="char">'v'</span> <span class="special">)</span>
+ <span class="special">{</span>
+ <span class="identifier">verbose</span> <span class="special">=</span> <span class="keyword">true</span><span class="special">;</span>
+ <span class="special">++</span><span class="identifier">argv</span><span class="special">;</span>
+ <span class="special">--</span><span class="identifier">argc</span><span class="special">;</span>
+ <span class="special">}</span>
+
+ <span class="keyword">for</span> <span class="special">(</span> <span class="keyword">int</span> <span class="identifier">i</span> <span class="special">=</span> <span class="number">1</span><span class="special">;</span> <span class="identifier">i</span> <span class="special"><</span> <span class="identifier">argc</span><span class="special">;</span> <span class="special">++</span><span class="identifier">i</span> <span class="special">)</span>
+ <span class="special">{</span>
+ <span class="keyword">if</span> <span class="special">(</span> <span class="identifier">i</span> <span class="special">></span> <span class="number">1</span> <span class="special">)</span> <span class="identifier">s</span> <span class="special">+=</span> <span class="char">' '</span><span class="special">;</span>
+ <span class="identifier">s</span> <span class="special">+=</span> <span class="identifier">argv</span><span class="special">[</span><span class="identifier">i</span><span class="special">];</span>
+ <span class="special">}</span>
+
+ <span class="keyword">if</span> <span class="special">(</span> <span class="identifier">verbose</span> <span class="special">)</span>
+ <span class="special">{</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">cout</span> <span class="special"><<</span> <span class="string">"command: \""</span> <span class="special"><<</span> <span class="identifier">s</span><span class="special">.</span><span class="identifier">c_str</span><span class="special">()</span> <span class="special"><<</span> <span class="string">"\"\n"</span><span class="special">;</span> <span class="special">}</span>
+
+ <span class="identifier">boost</span><span class="special">::</span><span class="identifier">stopwatches</span><span class="special">::</span><a href="../reference/reporters.html#boost_stopwatches.reference.reporters.stopclock_hpp.stopclock" title="
+ Template Class stopclock<>"><code class="computeroutput"><span class="identifier">stopclock</span></code></a><span class="special"><></span> <span class="identifier">t</span><span class="special">;</span>
+
+ <span class="keyword">return</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">system</span><span class="special">(</span> <span class="identifier">s</span><span class="special">.</span><span class="identifier">c_str</span><span class="special">()</span> <span class="special">);</span>
+<span class="special">}</span>
+</pre>
+<p>
+ <span class="emphasis"><em>See the source file example/timex.cpp</em></span>
+ </p>
+</div>
+</div>
+</div>
+<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
+<td align="left"></td>
+<td align="right"><div class="copyright-footer">Copyright © 2009 -2010 Vicente J. Botet Escriba<p>
+ 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)
+ </p>
+</div></td>
+</tr></table>
+<hr>
+<div class="spirit-nav">
+<a accesskey="p" href="tutorial.html"><img src="../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../users_guide.html"><img src="../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../index.html"><img src="../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="../reference.html"><img src="../../../../../../doc/src/images/next.png" alt="Next"></a>
+</div>
+</body>
+</html>
Modified: sandbox/chrono/libs/stopwatches/doc/html/boost_stopwatches/users_guide/getting_started.html
==============================================================================
--- sandbox/chrono/libs/stopwatches/doc/html/boost_stopwatches/users_guide/getting_started.html (original)
+++ sandbox/chrono/libs/stopwatches/doc/html/boost_stopwatches/users_guide/getting_started.html 2010-09-04 08:19:57 EDT (Sat, 04 Sep 2010)
@@ -42,22 +42,23 @@
Installing <span class="bold"><strong>Boost.Stopwatches</strong></span></a>
</h4></div></div></div>
<a name="boost_stopwatches.users_guide.getting_started.install.getting__emphasis_role__bold__boost_stopwatches__emphasis__"></a><h5>
-<a name="id4949416"></a>
+<a name="id4949766"></a>
<a href="getting_started.html#boost_stopwatches.users_guide.getting_started.install.getting__emphasis_role__bold__boost_stopwatches__emphasis__">Getting
<span class="bold"><strong>Boost.Stopwatches</strong></span> </a>
</h5>
<p>
You can get the last stable release of <span class="bold"><strong>Boost.Stopwatches</strong></span>
- by downloading <code class="literal">stopwatches.zip</code> from the <a href="http://www.boost-consulting.com/vault/index.php?directory=System" target="_top">Boost
- Vault</a>
+ by downloading <code class="literal">chrono.zip</code> from the <a href="http://www.boost-consulting.com/vault/index.php?directory=System" target="_top">Boost
+ Vault</a>, directories boost/stopwatches and libs/stopwatches.
</p>
<p>
- You can also access the latest (unstable?) state from the <a href="https://svn.boost.org/svn/boost/sandbox/chrono" target="_top">Boost
- Sandbox</a>. Just go to here
+ You can also access the latest (unstable?) state from the <a href="http://svn.boost.org/svn/boost/sandbox/chrono" target="_top">Boost
+ Sandbox</a>, directories boost/stopwatches and libs/stopwatches. Just
+ go to here
and follow the instructions there for anonymous SVN access.
</p>
<a name="boost_stopwatches.users_guide.getting_started.install.where_to_install__emphasis_role__bold__boost_stopwatches__emphasis___"></a><h5>
-<a name="id4949486"></a>
+<a name="id4949839"></a>
<a href="getting_started.html#boost_stopwatches.users_guide.getting_started.install.where_to_install__emphasis_role__bold__boost_stopwatches__emphasis___">Where
to install <span class="bold"><strong>Boost.Stopwatches</strong></span>? </a>
</h5>
@@ -73,7 +74,7 @@
variable. Any help is welcome.
</p>
<a name="boost_stopwatches.users_guide.getting_started.install.building__emphasis_role__bold__boost_stopwatches__emphasis__"></a><h5>
-<a name="id4949529"></a>
+<a name="id4942081"></a>
<a href="getting_started.html#boost_stopwatches.users_guide.getting_started.install.building__emphasis_role__bold__boost_stopwatches__emphasis__">Building
<span class="bold"><strong>Boost.Stopwatches</strong></span> </a>
</h5>
@@ -81,7 +82,7 @@
<span class="bold"><strong>Boost.Stopwatches</strong></span> is a header only library.
</p>
<a name="boost_stopwatches.users_guide.getting_started.install.requirements"></a><h5>
-<a name="id4949565"></a>
+<a name="id4942117"></a>
<a href="getting_started.html#boost_stopwatches.users_guide.getting_started.install.requirements">Requirements</a>
</h5>
<p>
@@ -98,7 +99,7 @@
<dl>
<dt><span class="term">Boost.Chrono</span></dt>
<dd><p>
- for ratio, ...
+ for duration, time_point and clocks, ...
</p></dd>
<dt><span class="term">Boost.Config</span></dt>
<dd><p>
@@ -108,17 +109,29 @@
<dd><p>
for throw_exception, ...
</p></dd>
+<dt><span class="term">Boost.MPL</span></dt>
+<dd><p>
+ for MPL Assert and bool, ...
+ </p></dd>
<dt><span class="term">Boost.System</span></dt>
<dd><p>
for error_code, ...
</p></dd>
+<dt><span class="term">Boost.Input/Outpu</span></dt>
+<dd><p>
+ for io_state, ...
+ </p></dd>
+<dt><span class="term">Boost.StaticAssert</span></dt>
+<dd><p>
+ for STATIC_ASSERT, ...
+ </p></dd>
<dt><span class="term">Boost.TypeTraits</span></dt>
<dd><p>
- for is_base, ...
+ for is_same, ...
</p></dd>
-<dt><span class="term">Boost.UtiliTy/EnableIf</span></dt>
+<dt><span class="term">Boost.Utility</span></dt>
<dd><p>
- for enable_if, ...
+ for base_from_memeber, ...
</p></dd>
</dl>
</div>
@@ -136,7 +149,7 @@
</dl>
</div>
<a name="boost_stopwatches.users_guide.getting_started.install.building_an_executable_that_uses__emphasis_role__bold__boost_stopwatches__emphasis__"></a><h5>
-<a name="id4949779"></a>
+<a name="id4942395"></a>
<a href="getting_started.html#boost_stopwatches.users_guide.getting_started.install.building_an_executable_that_uses__emphasis_role__bold__boost_stopwatches__emphasis__">Building
an executable that uses <span class="bold"><strong>Boost.Stopwatches</strong></span>
</a>
@@ -147,7 +160,7 @@
need also with Boos Thread.
</p>
<a name="boost_stopwatches.users_guide.getting_started.install.exceptions_safety_"></a><h5>
-<a name="id4949817"></a>
+<a name="id4942433"></a>
<a href="getting_started.html#boost_stopwatches.users_guide.getting_started.install.exceptions_safety_">Exceptions
safety </a>
</h5>
@@ -156,7 +169,7 @@
of exception safety as long as the underlying parameters provide it.
</p>
<a name="boost_stopwatches.users_guide.getting_started.install.thread_safety_"></a><h5>
-<a name="id4949845"></a>
+<a name="id4942461"></a>
<a href="getting_started.html#boost_stopwatches.users_guide.getting_started.install.thread_safety_">Thread
safety </a>
</h5>
@@ -164,7 +177,7 @@
All functions in the library are thread-unsafe except when noted explicitly.
</p>
<a name="boost_stopwatches.users_guide.getting_started.install.tested_compilers_"></a><h5>
-<a name="id4949871"></a>
+<a name="id4942486"></a>
<a href="getting_started.html#boost_stopwatches.users_guide.getting_started.install.tested_compilers_">Tested
compilers </a>
</h5>
@@ -247,24 +260,24 @@
<p>
If all you want to do is to time a program's execution:
</p>
-<pre class="programlisting"><span class="preprocessor">#include</span> <span class="special"><</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">chrono</span><span class="special">/</span><span class="identifier">stopclock</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">></span>
+<pre class="programlisting"><span class="preprocessor">#include</span> <span class="special"><</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">stopwatches</span><span class="special">/</span><span class="identifier">stopclock</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">></span>
<span class="special">...</span>
<span class="comment">// add this in the scope you want to time,
</span><span class="comment">// at the point you want the timer to start.
-</span><span class="identifier">boost</span><span class="special">::</span><span class="identifier">chrono</span><span class="special">::</span><a href="../reference/reporters.html#boost_stopwatches.reference.reporters.stopclock_hpp.stopclock" title="
+</span><span class="identifier">boost</span><span class="special">::</span><span class="identifier">stopwatches</span><span class="special">::</span><a href="../reference/reporters.html#boost_stopwatches.reference.reporters.stopclock_hpp.stopclock" title="
Template Class stopclock<>"><code class="computeroutput"><span class="identifier">stopclock</span></code></a><span class="special"><></span> <span class="identifier">rt</span><span class="special">;</span>
</pre>
<p>
Here is a complete program (stopclock_example.cpp):
</p>
-<pre class="programlisting"><span class="preprocessor">#include</span> <span class="special"><</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">chrono</span><span class="special">/</span><span class="identifier">stopclock</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">></span>
+<pre class="programlisting"><span class="preprocessor">#include</span> <span class="special"><</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">stopwatches</span><span class="special">/</span><span class="identifier">stopclock</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">></span>
<span class="preprocessor">#include</span> <span class="special"><</span><span class="identifier">cmath</span><span class="special">></span>
<span class="keyword">int</span> <span class="identifier">main</span><span class="special">()</span>
<span class="special">{</span>
- <span class="identifier">boost</span><span class="special">::</span><span class="identifier">chrono</span><span class="special">::</span><a href="../reference/reporters.html#boost_stopwatches.reference.reporters.stopclock_hpp.stopclock" title="
+ <span class="identifier">boost</span><span class="special">::</span><span class="identifier">stopwatches</span><span class="special">::</span><a href="../reference/reporters.html#boost_stopwatches.reference.reporters.stopclock_hpp.stopclock" title="
Template Class stopclock<>"><code class="computeroutput"><span class="identifier">stopclock</span></code></a><span class="special"><></span> <span class="identifier">t</span><span class="special">;</span>
<span class="keyword">for</span> <span class="special">(</span> <span class="keyword">long</span> <span class="identifier">i</span> <span class="special">=</span> <span class="number">0</span><span class="special">;</span> <span class="identifier">i</span> <span class="special"><</span> <span class="number">10000000</span><span class="special">;</span> <span class="special">++</span><span class="identifier">i</span> <span class="special">)</span>
Modified: sandbox/chrono/libs/stopwatches/doc/html/boost_stopwatches/users_guide/tutorial.html
==============================================================================
--- sandbox/chrono/libs/stopwatches/doc/html/boost_stopwatches/users_guide/tutorial.html (original)
+++ sandbox/chrono/libs/stopwatches/doc/html/boost_stopwatches/users_guide/tutorial.html 2010-09-04 08:19:57 EDT (Sat, 04 Sep 2010)
@@ -8,7 +8,7 @@
<link rel="up" href="../users_guide.html" title=" Users'Guide">
<link rel="prev" href="getting_started.html" title=" Getting
Started">
-<link rel="next" href="../examples.html" title="Examples">
+<link rel="next" href="examples.html" title="Examples">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table cellpadding="2" width="100%"><tr>
@@ -21,7 +21,7 @@
</tr></table>
<hr>
<div class="spirit-nav">
-<a accesskey="p" href="getting_started.html"><img src="../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../users_guide.html"><img src="../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../index.html"><img src="../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="../examples.html"><img src="../../../../../../doc/src/images/next.png" alt="Next"></a>
+<a accesskey="p" href="getting_started.html"><img src="../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../users_guide.html"><img src="../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../index.html"><img src="../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="examples.html"><img src="../../../../../../doc/src/images/next.png" alt="Next"></a>
</div>
<div class="section" lang="en">
<div class="titlepage"><div><div><h3 class="title">
@@ -72,7 +72,7 @@
</dl></div>
<p>
Knowing how long a program, a function or a specific block takes to execute
- is useful in both test and production environments. <span class="bold"><strong>Boost.Chrono</strong></span>
+ is useful in both test and production environments. <span class="bold"><strong>Boost.Stopwatches</strong></span>
introduces the <a href="../reference/stopwatches.html#boost_stopwatches.reference.stopwatches.stopwatch_req" title="
Stopwatch Requirements"><code class="computeroutput"><span class="identifier">Stopwatch</span></code></a> concept which captures
the mechanism to measure the elapsed time. A <a href="../reference/stopwatches.html#boost_stopwatches.reference.stopwatches.stopwatch_req" title="
@@ -91,6 +91,8 @@
<code class="computeroutput"><span class="identifier">Clock</span></code>. For example
</p>
<pre class="programlisting"><span class="keyword">using</span> <span class="keyword">namespace</span> <span class="identifier">boost</span><span class="special">::</span><span class="identifier">chrono</span><span class="special">;</span>
+<span class="keyword">using</span> <span class="keyword">namespace</span> <span class="identifier">boost</span><span class="special">::</span><span class="identifier">stopwatches</span><span class="special">;</span>
+
<span class="keyword">int</span> <span class="identifier">f1</span><span class="special">(</span><span class="keyword">long</span> <span class="identifier">j</span><span class="special">)</span> <span class="special">{</span>
<a href="../reference/reporters.html#boost_stopwatches.reference.reporters.stopwatch_reporter_hpp.stopwatch_reporter" title="
Template Class stopwatch_reporter<>"><code class="computeroutput"><span class="identifier">stopwatch_reporter</span></code></a><span class="special"><</span><a href="../reference/stopwatches.html#boost_stopwatches.reference.stopwatches.stopwatch_hpp.stopwatch" title="
@@ -133,7 +135,8 @@
<p>
For example
</p>
-<pre class="programlisting"><span class="keyword">using</span> <span class="keyword">namespace</span> <span class="identifier">boost</span><span class="special">::</span><span class="identifier">chrono</span><span class="special">;</span>
+<pre class="programlisting"><span class="keyword">using</span> <span class="keyword">namespace</span> <span class="identifier">boost</span><span class="special">::</span><span class="identifier">stopwatches</span><span class="special">;</span>
+
<span class="keyword">int</span> <span class="identifier">f1</span><span class="special">(</span><span class="keyword">long</span> <span class="identifier">j</span><span class="special">)</span> <span class="special">{</span>
<span class="keyword">static</span> <a href="../reference/reporters.html#boost_stopwatches.reference.reporters.stopwatch_reporter_hpp.stopwatch_reporter" title="
Template Class stopwatch_reporter<>"><code class="computeroutput"><span class="identifier">stopwatch_reporter</span></code></a><span class="special"><</span><a href="../reference/stopwatches.html#boost_stopwatches.reference.stopwatches.stopwatch_accumulator_hpp.stopwatch_accumulator" title="
@@ -194,14 +197,14 @@
report. You can of course define your own macro as
</p>
<pre class="programlisting"><span class="preprocessor">#define</span> <span class="identifier">REPORT_FUNCTION_ACCUMULATED_LIFETIME</span><span class="special">\</span>
- <span class="keyword">static</span> <span class="identifier">boost</span><span class="special">::</span><span class="identifier">chrono</span><span class="special">::</span><a href="../reference/reporters.html#boost_stopwatches.reference.reporters.stopclock_accumulator_hpp.stopclock_accumulator" title="
+ <span class="keyword">static</span> <span class="identifier">boost</span><span class="special">::</span><span class="identifier">stopwatches</span><span class="special">::</span><a href="../reference/reporters.html#boost_stopwatches.reference.reporters.stopclock_accumulator_hpp.stopclock_accumulator" title="
Template Class stopclock_accumulator<>"><code class="computeroutput"><span class="identifier">stopclock_accumulator</span></code></a><span class="special"><></span> <span class="special">\</span>
<span class="identifier">BOOST_JOIN</span><span class="special">(</span><span class="identifier">_accumulator_</span><span class="special">,</span> <span class="identifier">__LINE__</span><span class="special">)</span><span class="identifier">_</span>
<span class="special">(</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">string</span><span class="special">(</span><span class="identifier">BOOST_CURRENT_FUNCTION</span><span class="special">)</span> <span class="special">+</span> <span class="string">": "</span> <span class="special">+</span> <span class="special">\</span>
- <span class="identifier">boost</span><span class="special">::</span><span class="identifier">chrono</span><span class="special">::</span><a href="../reference/formatters.html#boost_stopwatches.reference.formatters.stopwatch_accumulator_formatter_hpp.basic_stopwatch_accumulator_formatter" title="
+ <span class="identifier">boost</span><span class="special">::</span><span class="identifier">stopwatches</span><span class="special">::</span><a href="../reference/formatters.html#boost_stopwatches.reference.formatters.stopwatch_accumulator_formatter_hpp.basic_stopwatch_accumulator_formatter" title="
Template Class basic_stopwatch_accumulator_formatter<>"><code class="computeroutput"><span class="identifier">stopwatch_accumulator_formatter</span></code></a><span class="special">::</span><span class="identifier">default_format</span><span class="special">()</span> <span class="special">\</span>
<span class="special">);</span> <span class="special">\</span>
- <span class="identifier">boost</span><span class="special">::</span><span class="identifier">chrono</span><span class="special">::</span><a href="../reference/reporters.html#boost_stopwatches.reference.reporters.stopclock_accumulator_hpp.stopclock_accumulator" title="
+ <span class="identifier">boost</span><span class="special">::</span><span class="identifier">stopwatches</span><span class="special">::</span><a href="../reference/reporters.html#boost_stopwatches.reference.reporters.stopclock_accumulator_hpp.stopclock_accumulator" title="
Template Class stopclock_accumulator<>"><code class="computeroutput"><span class="identifier">stopclock_accumulator</span></code></a><span class="special"><>::</span><span class="identifier">scoped_run</span> <span class="special">\</span>
<span class="identifier">BOOST_JOIN</span><span class="special">(</span><span class="identifier">_accumulator_run_</span><span class="special">,</span> <span class="identifier">__LINE__</span><span class="special">)</span> <span class="special">\</span>
<span class="special">(</span><span class="identifier">BOOST_JOIN</span><span class="special">(</span><span class="identifier">_accumulator_</span><span class="special">,</span> <span class="identifier">__LINE__</span><span class="special">))</span>
@@ -288,18 +291,18 @@
can I suspend a stopwatch?">How
can I suspend a stopwatch?</a>
</h5></div></div></div>
-<pre class="programlisting"><span class="preprocessor">#include</span> <span class="special"><</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">chrono</span><span class="special">/</span><span class="identifier">stopwatch</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">></span>
+<pre class="programlisting"><span class="preprocessor">#include</span> <span class="special"><</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">stopwatches</span><span class="special">/</span><span class="identifier">stopwatch</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">></span>
<span class="preprocessor">#include</span> <span class="special"><</span><span class="identifier">cmath</span><span class="special">></span>
<span class="preprocessor">#include</span> <span class="special"><</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">thread</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">></span>
-<span class="keyword">using</span> <span class="keyword">namespace</span> <span class="identifier">boost</span><span class="special">::</span><span class="identifier">chrono</span><span class="special">;</span>
+<span class="keyword">using</span> <span class="keyword">namespace</span> <span class="identifier">boost</span><span class="special">::</span><span class="identifier">stopwatches</span><span class="special">;</span>
<span class="keyword">double</span> <span class="identifier">res</span><span class="special">;</span>
<span class="keyword">void</span> <span class="identifier">f1</span><span class="special">(</span><span class="keyword">long</span> <span class="identifier">j</span><span class="special">)</span>
<span class="special">{</span>
<a href="../reference/reporters.html#boost_stopwatches.reference.reporters.stopwatch_reporter_hpp.stopwatch_reporter" title="
Template Class stopwatch_reporter<>"><code class="computeroutput"><span class="identifier">stopwatch_reporter</span></code></a><span class="special"><</span><a href="../reference/stopwatches.html#boost_stopwatches.reference.stopwatches.stopwatch_hpp.stopwatch" title="
- Template Class stopwatch<>"><code class="computeroutput"><span class="identifier">stopwatch</span></code></a><span class="special"><></span> <span class="special">>::</span> <span class="identifier">_</span><span class="special">(</span><span class="identifier">BOOST_CHRONO_STOPWATCH_FUNCTION_FORMAT</span><span class="special">);</span>
+ Template Class stopwatch<>"><code class="computeroutput"><span class="identifier">stopwatch</span></code></a><span class="special"><></span> <span class="special">>::</span> <span class="identifier">_</span><span class="special">(</span><span class="identifier">BOOST_STOPWATCHES_STOPWATCH_FUNCTION_FORMAT</span><span class="special">);</span>
<span class="keyword">for</span> <span class="special">(</span><span class="keyword">long</span> <span class="identifier">i</span> <span class="special">=</span><span class="number">0</span><span class="special">;</span> <span class="identifier">i</span><span class="special"><</span> <span class="identifier">j</span><span class="special">;</span> <span class="identifier">i</span><span class="special">+=</span><span class="number">1</span><span class="special">)</span>
<span class="identifier">res</span><span class="special">+=</span><span class="identifier">std</span><span class="special">::</span><span class="identifier">sqrt</span><span class="special">(</span> <span class="identifier">res</span><span class="special">+</span><span class="number">123.456L</span><span class="special">+</span><span class="identifier">i</span> <span class="special">);</span> <span class="comment">// burn some time
</span> <a href="../reference/reporters.html#boost_stopwatches.reference.reporters.stopwatch_reporter_hpp.stopwatch_reporter" title="
@@ -337,8 +340,8 @@
<span class="keyword">typedef</span> <a href="../reference/reporters.html#boost_stopwatches.reference.reporters.stopwatch_reporter_hpp.stopwatch_reporter" title="
Template Class stopwatch_reporter<>"><code class="computeroutput"><span class="identifier">stopwatch_reporter</span></code></a><span class="special"><</span><a href="../reference/stopwatches.html#boost_stopwatches.reference.stopwatches.stopwatch_accumulator_hpp.stopwatch_accumulator" title="
- Template Class stopwatch_accumulator<>"><code class="computeroutput"><span class="identifier">stopwatch_accumulator</span></code></a><span class="special"><</span>process_real_cpu_clock
<span class="special">,</span>
- <span class="identifier">accumulator_set</span><span class="special"><</span>process_real_cpu_clock
<span class="special">::</span><span class="identifier">rep</span><span class="special">,</span>
+ Template Class stopwatch_accumulator<>"><code class="computeroutput"><span class="identifier">stopwatch_accumulator</span></code></a><span class="special"><</span><code class="computeroutput"><span class="identifier">process_real_cpu_clock</span></code><span class="special">,</span>
+ <span class="identifier">accumulator_set</span><span class="special"><</span><code class="computeroutput"><span class="identifier">process_real_cpu_clock</span></code><span class="special">::</span><span class="identifier">rep</span><span class="special">,</span>
<span class="identifier">features</span><span class="special"><</span>
<span class="identifier">tag</span><span class="special">::</span><span class="identifier">count</span><span class="special">,</span>
<span class="identifier">tag</span><span class="special">::</span><span class="identifier">sum</span><span class="special">,</span>
@@ -391,8 +394,8 @@
<span class="special">...</span>
<span class="keyword">typedef</span> <a href="../reference/reporters.html#boost_stopwatches.reference.reporters.stopwatch_reporter_hpp.stopwatch_reporter" title="
Template Class stopwatch_reporter<>"><code class="computeroutput"><span class="identifier">stopwatch_reporter</span></code></a><span class="special"><</span><a href="../reference/stopwatches.html#boost_stopwatches.reference.stopwatches.stopwatch_accumulator_hpp.stopwatch_accumulator" title="
- Template Class stopwatch_accumulator<>"><code class="computeroutput"><span class="identifier">stopwatch_accumulator</span></code></a><span class="special"><</span>process_real_cpu_clock
<span class="special">,</span>
- <span class="identifier">accumulator_set</span><span class="special"><</span>process_real_cpu_clock
<span class="special">::</span><span class="identifier">rep</span><span class="special">,</span>
+ Template Class stopwatch_accumulator<>"><code class="computeroutput"><span class="identifier">stopwatch_accumulator</span></code></a><span class="special"><</span><code class="computeroutput"><span class="identifier">process_real_cpu_clock</span></code><span class="special">,</span>
+ <span class="identifier">accumulator_set</span><span class="special"><</span><code class="computeroutput"><span class="identifier">process_real_cpu_clock</span></code><span class="special">::</span><span class="identifier">rep</span><span class="special">,</span>
<span class="identifier">features</span><span class="special"><</span>
<span class="identifier">tag</span><span class="special">::</span><span class="identifier">count</span><span class="special">,</span>
<span class="identifier">tag</span><span class="special">::</span><span class="identifier">sum</span><span class="special">,</span>
@@ -409,8 +412,8 @@
</p>
<pre class="programlisting"><span class="keyword">typedef</span> <a href="../reference/reporters.html#boost_stopwatches.reference.reporters.stopwatch_reporter_hpp.stopwatch_reporter" title="
Template Class stopwatch_reporter<>"><code class="computeroutput"><span class="identifier">stopwatch_reporter</span></code></a><span class="special"><</span><a href="../reference/stopwatches.html#boost_stopwatches.reference.stopwatches.stopwatch_accumulator_hpp.stopwatch_accumulator" title="
- Template Class stopwatch_accumulator<>"><code class="computeroutput"><span class="identifier">stopwatch_accumulator</span></code></a><span class="special"><</span>process_real_cpu_clock
<span class="special">,</span>
- <span class="identifier">accumulator_set</span><span class="special"><</span>process_real_cpu_clock
<span class="special">::</span><span class="identifier">rep</span><span class="special">,</span>
+ Template Class stopwatch_accumulator<>"><code class="computeroutput"><span class="identifier">stopwatch_accumulator</span></code></a><span class="special"><</span><code class="computeroutput"><span class="identifier">process_real_cpu_clock</span></code><span class="special">,</span>
+ <span class="identifier">accumulator_set</span><span class="special"><</span><code class="computeroutput"><span class="identifier">process_real_cpu_clock</span></code><span class="special">::</span><span class="identifier">rep</span><span class="special">,</span>
<span class="identifier">features</span><span class="special"><</span>
<span class="identifier">tag</span><span class="special">::</span><span class="identifier">count</span><span class="special">,</span>
<span class="identifier">tag</span><span class="special">::</span><span class="identifier">sum</span><span class="special">,</span>
@@ -495,7 +498,7 @@
</tr></table>
<hr>
<div class="spirit-nav">
-<a accesskey="p" href="getting_started.html"><img src="../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../users_guide.html"><img src="../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../index.html"><img src="../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="../examples.html"><img src="../../../../../../doc/src/images/next.png" alt="Next"></a>
+<a accesskey="p" href="getting_started.html"><img src="../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../users_guide.html"><img src="../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../index.html"><img src="../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="examples.html"><img src="../../../../../../doc/src/images/next.png" alt="Next"></a>
</div>
</body>
</html>
Modified: sandbox/chrono/libs/stopwatches/doc/html/index.html
==============================================================================
--- sandbox/chrono/libs/stopwatches/doc/html/index.html (original)
+++ sandbox/chrono/libs/stopwatches/doc/html/index.html 2010-09-04 08:19:57 EDT (Sat, 04 Sep 2010)
@@ -49,9 +49,8 @@
<dt><span class="section"><a href="boost_stopwatches/users_guide/getting_started.html"> Getting
Started</a></span></dt>
<dt><span class="section">Tutorial</span></dt>
+<dt><span class="section">Examples</span></dt>
</dl></dd>
-<dt><span class="section">Examples</span></dt>
-<dd><dl><dt><span class="section">Reporting</span></dt></dl></dd>
<dt><span class="section"> Reference </span></dt>
<dd><dl>
<dt><span class="section"> Stopwatches</span></dt>
@@ -87,7 +86,7 @@
</table></div>
</div>
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
-<td align="left"><p><small>Last revised: September 02, 2010 at 21:55:04 GMT</small></p></td>
+<td align="left"><p><small>Last revised: September 04, 2010 at 12:18:04 GMT</small></p></td>
<td align="right"><div class="copyright-footer"></div></td>
</tr></table>
<hr>
Modified: sandbox/chrono/libs/stopwatches/doc/html/standalone_HTML.manifest
==============================================================================
--- sandbox/chrono/libs/stopwatches/doc/html/standalone_HTML.manifest (original)
+++ sandbox/chrono/libs/stopwatches/doc/html/standalone_HTML.manifest 2010-09-04 08:19:57 EDT (Sat, 04 Sep 2010)
@@ -5,8 +5,7 @@
boost_stopwatches/users_guide.html
boost_stopwatches/users_guide/getting_started.html
boost_stopwatches/users_guide/tutorial.html
-boost_stopwatches/examples.html
-boost_stopwatches/examples/reporting.html
+boost_stopwatches/users_guide/examples.html
boost_stopwatches/reference.html
boost_stopwatches/reference/stopwatches.html
boost_stopwatches/reference/reporters.html
Modified: sandbox/chrono/libs/stopwatches/doc/stopwatches.qbk
==============================================================================
--- sandbox/chrono/libs/stopwatches/doc/stopwatches.qbk (original)
+++ sandbox/chrono/libs/stopwatches/doc/stopwatches.qbk 2010-09-04 08:19:57 EDT (Sat, 04 Sep 2010)
@@ -9,7 +9,6 @@
[quickbook 1.5]
[authors [Botet Escriba, Vicente J.]]
[copyright 2009-2010 Vicente J. Botet Escriba]
- [purpose Stopwatches utilities]
[license
Distributed under the Boost Software License, Version 1.0.
(See accompanying file LICENSE_1_0.txt or copy at
@@ -154,7 +153,8 @@
[/==================]
-[template SuspendibleClock_concept_link[link_text] [link boost_stopwatches.reference.other_clocks.suspendible_clock_req [link_text]]]
+[/template SuspendibleClock_concept_link[link_text] [link boost_stopwatches.reference.other_clocks.suspendible_clock_req [link_text]]]
+[template SuspendibleClock_concept_link[link_text] [link_text]]
[def __SuspendibleClock_concept__ [SuspendibleClock_concept_link `SuspendibleClock` concept]]
[def __SuspendibleClock_concept_type__ [SuspendibleClock_concept_link `SuspendibleClock`]]
[def __SuspendibleClock_req__ [SuspendibleClock_concept_link `SuspendibleClock` requirements]]
@@ -189,14 +189,15 @@
[def __scoped_stopclock__ [link boost_stopwatches.reference.reporters.scoped_stopclock_hpp.scoped_stopclock `scoped_stopclock`]]
-[def __process_real_cpu_clock__ [link boost_stopwatches.reference.other_clocks.process_cpu_clocks_hpp.process_real_cpu_clock `process_real_cpu_clock`]]
+[def __process_real_cpu_clock__ `process_real_cpu_clock`]
-[def __process_system_cpu_clock__ [link boost_stopwatches.reference.other_clocks.process_cpu_clocks_hpp.process_system_cpu_clock `process_system_cpu_clock`]]
+[def __process_system_cpu_clock__ `process_system_cpu_clock`]
-[def __process_user_cpu_clock__ [link boost_stopwatches.reference.other_clocks.process_cpu_clocks_hpp.process_user_cpu_clock `process_user_cpu_clock`]]
+[def __process_user_cpu_clock__ `process_user_cpu_clock`]
-[def __thread_clock__ [link boost_stopwatches.reference.other_clocks.thread_clock_hpp.thread_clock `thread_clock`]]
-[def __suspendible_clock__ [link boost_stopwatches.reference.other_clocks.suspendible_clock_hpp.suspendible_clock `suspendible_clock`]]
+[def __thread_clock__ `thread_clock`]
+
+[def __suspendible_clock__ `suspendible_clock`]
[def __stopwatch_accumulator_formatter__ [link boost_stopwatches.reference.formatters.stopwatch_accumulator_formatter_hpp.basic_stopwatch_accumulator_formatter `stopwatch_accumulator_formatter`]]
@@ -247,8 +248,20 @@
[/=================]
-[/
+
+[heading Measuring elapsed time]
+
+Knowing how long a program, a function or a specific code block takes to execute is useful in both test and production environments.
+__Boost_Stopwatches__ introduces the __Stopwatch__ concept which is a mechanism to measure the elapsed time.
+A Stopwatch allows to start, stop, suspend and resume measuring the elapsed time.
+__stopwatch__`<>` is the basic model of __Stopwatch__.
+
+[heading Reporting elapsed time]
+
+It is often necessary to report elapsed time on a user display or in a log file. __stopwatch_reporter__<> provides a runtime reporting mechanism for this purpose which can be invoked in just one line of code.
+
using namespace boost::chrono;
+ using namespace boost::stopwatches;
int main()
{
stopwatch_reporter<stopwatch<process_cpu_clock> > _;
@@ -261,22 +274,13 @@
As this is one of the expression more commonly use, the library provides a stopclock shortcut so the preceding can be writen as
- using namespace boost::chrono;
+ using namespace boost::stopwatches;
int main()
{
__stopclock__<> _;
// ...
}
-]
-
-[heading Reporting elapsed time]
-
-Knowing how long a program, a function or a specific code block takes to execute is useful in both test and production environments.
-__Boost_Chrono__ introduces the __Stopwatch__ concept which is a mechanism to measure the elapsed time.
-A Stopwatch allows to start, stop, suspend and resume measuring the elapsed time.
-__stopwatch__`<>` is the basic model of __Stopwatch__.
-It is often necessary to report elapsed time on a user display or in a log file. __stopwatch_reporter__<> provides a runtime reporting mechanism for this purpose which can be invoked in just one line of code.
[heading How reliable are these measures?]
@@ -289,8 +293,7 @@
[/==================]
-
-Knowing how long a program takes to execute is useful in both test and production environments. On top of the standard facilities __Boost_Chrono__ __Boost_Stopwatches__ provides:
+On top of the standard facilities of __Boost_Chrono__, __Boost_Stopwatches__ provides:
* Stopwatches: A facility to measure elapsed time with the ability to start, stop, suspend, or resume measurement.
* __Stopwatch__ concept
@@ -324,10 +327,10 @@
[heading Getting __Boost_Stopwatches__ ]
[/=================================]
-You can get the last stable release of __Boost_Stopwatches__ by downloading [^stopwatches.zip] from the
-[@http://www.boost-consulting.com/vault/index.php?directory=System Boost Vault]
+You can get the last stable release of __Boost_Stopwatches__ by downloading [^chrono.zip] from the
+[@http://www.boost-consulting.com/vault/index.php?directory=System Boost Vault], directories boost/stopwatches and libs/stopwatches.
-You can also access the latest (unstable?) state from the [@https://svn.boost.org/svn/boost/sandbox/chrono Boost Sandbox]. Just go to [@http://svn.boost.org/trac/boost/wiki/BoostSubversion here] and follow the instructions there for anonymous SVN access.
+You can also access the latest (unstable?) state from the [@http://svn.boost.org/svn/boost/sandbox/chrono Boost Sandbox], directories boost/stopwatches and libs/stopwatches. Just go to [@http://svn.boost.org/trac/boost/wiki/BoostSubversion here] and follow the instructions there for anonymous SVN access.
[/==========================================]
[heading Where to install __Boost_Stopwatches__? ]
@@ -353,7 +356,7 @@
[variablelist
[
- [[@http://www.boost.org/libs/chrono [*Boost.Chrono]]] [for ratio, ...]
+ [[@http://www.boost.org/libs/chrono [*Boost.Chrono]]] [for duration, time_point and clocks, ...]
]
[
[[@http://www.boost.org/libs/config [*Boost.Config]]] [for configuration purposes, ...]
@@ -362,13 +365,22 @@
[[@http://www.boost.org/libs/exception [*Boost.Exception]]] [for throw_exception, ...]
]
[
+ [[@http://www.boost.org/libs/mpl [*Boost.MPL]]] [for MPL Assert and bool, ...]
+]
+[
[[@http://www.boost.org/libs/system [*Boost.System]]] [for error_code, ...]
]
[
- [[@http://www.boost.org/libs/type_traits [*Boost.TypeTraits]]] [for is_base, ...]
+ [[@http://www.boost.org/libs/io [*Boost.Input/Outpu]]] [for io_state, ...]
+]
+[
+ [[@http://www.boost.org/libs/static_assert [*Boost.StaticAssert]]] [for STATIC_ASSERT, ...]
+]
+[
+ [[@http://www.boost.org/libs/type_traits [*Boost.TypeTraits]]] [for is_same, ...]
]
[
- [[@http://www.boost.org/libs/utility [*Boost.UtiliTy/EnableIf]]] [for enable_if, ...]
+ [[@http://www.boost.org/libs/utility [*Boost.Utility]]] [for base_from_memeber, ...]
]
]
@@ -444,22 +456,22 @@
If all you want to do is to time a program's execution:
- #include <boost/chrono/stopclock.hpp>
+ #include <boost/stopwatches/stopclock.hpp>
...
// add this in the scope you want to time,
// at the point you want the timer to start.
- boost::chrono::__stopclock__<> rt;
+ boost::stopwatches::__stopclock__<> rt;
Here is a complete program (stopclock_example.cpp):
- #include <boost/chrono/stopclock.hpp>
+ #include <boost/stopwatches/stopclock.hpp>
#include <cmath>
int main()
{
- boost::chrono::__stopclock__<> t;
+ boost::stopwatches::__stopclock__<> t;
for ( long i = 0; i < 10000000; ++i )
std::sqrt( 123.456L ); // burn some time
@@ -486,7 +498,7 @@
[section Stopwatches and Stopclocks]
Knowing how long a program, a function or a specific block takes to execute is useful in both test and production environments.
-__Boost_Chrono__ introduces the __Stopwatch__ concept which captures the mechanism to measure the elapsed time.
+__Boost_Stopwatches__ introduces the __Stopwatch__ concept which captures the mechanism to measure the elapsed time.
A __Stopwatch__ allows to `start`, `stop`, `suspend` and `resume` measuring the elapsed time.
__stopwatch__`<>` is the basic model of __Stopwatch__ allowing to make a single measure.
@@ -495,6 +507,8 @@
For example
using namespace boost::chrono;
+ using namespace boost::stopwatches;
+
int f1(long j) {
__stopwatch_reporter__<__stopwatch__<> > _;
@@ -523,7 +537,8 @@
For example
- using namespace boost::chrono;
+ using namespace boost::stopwatches;
+
int f1(long j) {
static __stopwatch_reporter__<__stopwatch_accumulator__<> > sw;
__stopwatch_reporter__<__stopwatch_accumulator__<> >::scoped_run _(sw);
@@ -565,12 +580,12 @@
Some of you will say that this is too long to type just to get the a report. You can of course define your own macro as
#define REPORT_FUNCTION_ACCUMULATED_LIFETIME\
- static boost::chrono::__stopclock_accumulator__<> \
+ static boost::stopwatches::__stopclock_accumulator__<> \
BOOST_JOIN(_accumulator_, __LINE__)_
( std::string(BOOST_CURRENT_FUNCTION) + ": " + \
- boost::chrono::__stopwatch_accumulator_formatter__::default_format() \
+ boost::stopwatches::__stopwatch_accumulator_formatter__::default_format() \
); \
- boost::chrono::__stopclock_accumulator__<>::scoped_run \
+ boost::stopwatches::__stopclock_accumulator__<>::scoped_run \
BOOST_JOIN(_accumulator_run_, __LINE__) \
(BOOST_JOIN(_accumulator_, __LINE__))
@@ -633,16 +648,16 @@
[section How can I suspend a stopwatch?]
- #include <boost/chrono/stopwatch.hpp>
+ #include <boost/stopwatches/stopwatch.hpp>
#include <cmath>
#include <boost/thread.hpp>
- using namespace boost::chrono;
+ using namespace boost::stopwatches;
double res;
void f1(long j)
{
- __stopwatch_reporter__<__stopwatch__<> >:: _(BOOST_CHRONO_STOPWATCH_FUNCTION_FORMAT);
+ __stopwatch_reporter__<__stopwatch__<> >:: _(BOOST_STOPWATCHES_STOPWATCH_FUNCTION_FORMAT);
for (long i =0; i< j; i+=1)
res+=std::sqrt( res+123.456L+i ); // burn some time
__stopwatch_reporter__<__stopwatch__<> >::scoped_suspend s(_);
@@ -796,7 +811,6 @@
[endsect]
-[endsect]
[/===============]
[section Examples]
[/===============]
@@ -816,12 +830,12 @@
When the `stopclock<> t` object is created, it starts timing. When it is destroyed at the end of the program, its destructor stops the time counting and displays timing information on cout.
- #include <boost/chrono/stopclock.hpp>
+ #include <boost/stopwatches/stopclock.hpp>
#include <cmath>
int main()
{
- boost::chrono::__stopclock__<> t;
+ boost::stopwatches::__stopclock__<> t;
for ( long i = 0; i < 10000000; ++i )
std::sqrt( 123.456L ); // burn some time
@@ -845,7 +859,7 @@
The stopclock_example2.cpp program is the same, except that it supplies additional constructor arguments from the command line:
- #include <boost/chrono/stopclock.hpp>
+ #include <boost/stopwatches/stopclock.hpp>
#include <cmath>
int main( int argc, char * argv[] )
@@ -853,7 +867,7 @@
const char * format = argc > 1 ? argv[1] : "%t cpu seconds\n";
int places = argc > 2 ? std::atoi( argv[2] ) : 2;
- boost::chrono::__stopclock__<> t( format, places );
+ boost::stopwatches::__stopclock__<> t( format, places );
for ( long i = 0; i < 10000000; ++i )
std::sqrt( 123.456L ); // burn some time
@@ -882,7 +896,7 @@
[/===============================================================]
[section time command]
- #include <boost/chrono/stopclock.hpp>
+ #include <boost/stopwatches/stopclock.hpp>
#include <cstdlib>
#include <string>
#include <iostream>
@@ -916,7 +930,7 @@
if ( verbose )
{ std::cout << "command: \"" << s.c_str() << "\"\n"; }
- boost::chrono::__stopclock__<> t;
+ boost::stopwatches::__stopclock__<> t;
return std::system( s.c_str() );
}
@@ -925,6 +939,7 @@
[endsect]
[endsect]
+[endsect]
[/
@@ -983,30 +998,30 @@
This file include all the stopwatches related files
- #include <boost/chrono/stopwatches.hpp>
+ #include <boost/stopwatches/stopwatches.hpp>
[endsect]
[/=============================================]
-[section:chrono_stopwatches_hpp Header `<boost/chrono/stopwatches.hpp>`]
+[section:chrono_stopwatches_hpp Header `<boost/stopwatches/stopwatches.hpp>`]
[/=============================================]
This file include all the stopwatches related files
- #include <boost/chrono/scoped_stopclock.hpp>
- #include <boost/chrono/process_cpu_clocks.hpp>
- #include <boost/chrono/stopclock.hpp>
- #include <boost/chrono/stopclock_accumulator.hpp>
- #include <boost/chrono/stopwatch.hpp>
- #include <boost/chrono/stopwatch_accumulator.hpp>
- #include <boost/chrono/stopwatch_accumulator_formatter.hpp>
- #include <boost/chrono/stopwatch_accumulator_time_formatter.hpp>
- #include <boost/chrono/stopwatch_formatter.hpp>
- #include <boost/chrono/stopwatch_reporter.hpp>
- #include <boost/chrono/stopwatch_scoped.hpp>
- #include <boost/chrono/time_formatter.hpp>
- #include <boost/chrono/t24_hours.hpp>
- #include <boost/chrono/t24_hours_formatter.hpp>
+ #include <boost/stopwatches/scoped_stopclock.hpp>
+ #include <boost/stopwatches/process_cpu_clocks.hpp>
+ #include <boost/stopwatches/stopclock.hpp>
+ #include <boost/stopwatches/stopclock_accumulator.hpp>
+ #include <boost/stopwatches/stopwatch.hpp>
+ #include <boost/stopwatches/stopwatch_accumulator.hpp>
+ #include <boost/stopwatches/stopwatch_accumulator_formatter.hpp>
+ #include <boost/stopwatches/stopwatch_accumulator_time_formatter.hpp>
+ #include <boost/stopwatches/stopwatch_formatter.hpp>
+ #include <boost/stopwatches/stopwatch_reporter.hpp>
+ #include <boost/stopwatches/stopwatch_scoped.hpp>
+ #include <boost/stopwatches/time_formatter.hpp>
+ #include <boost/stopwatches/t24_hours.hpp>
+ #include <boost/stopwatches/t24_hours_formatter.hpp>
[endsect]
@@ -1097,11 +1112,11 @@
[/==================================================]
-[section:lightweight_stopwatch_hpp Header `<boost/chrono/lightweight_stopwatch.hpp>`]
+[section:lightweight_stopwatch_hpp Header `<boost/stopwatches/lightweight_stopwatch.hpp>`]
[/==================================================]
- namespace boost { namespace chrono {
+ namespace boost { namespace stopwatches {
struct dont_start_t;
static const dont_start_t dont_start;
@@ -1235,11 +1250,11 @@
[/==================================================]
-[section:stopwatch_hpp Header `<boost/chrono/stopwatch.hpp>`]
+[section:stopwatch_hpp Header `<boost/stopwatches/stopwatch.hpp>`]
[/==================================================]
- namespace boost { namespace chrono {
+ namespace boost { namespace stopwatches {
template <class Clock=high_resolution_clock> class __stopwatch__;
template <class Clock>
@@ -1323,23 +1338,23 @@
The library provides stopwatch short cuts for all the models of __Clock__, replacing clock by stopwatch.
- typedef boost::chrono::stopwatch< boost::chrono::system_clock >
+ typedef boost::stopwatches::stopwatch< boost::chrono::system_clock >
system_stopwatch;
#ifdef __BOOST_CHRONO_HAS_CLOCK_MONOTONIC
- typedef boost::chrono::stopwatch< boost::chrono::monotonic_clock >
+ typedef boost::stopwatches::stopwatch< boost::chrono::monotonic_clock >
monotonic_stopwatch;
#endif
- typedef boost::chrono::stopwatch< boost::chrono::high_resolution_clock >
+ typedef boost::stopwatches::stopwatch< boost::chrono::high_resolution_clock >
high_resolution_stopwatch;
[endsect]
[endsect]
[/==================================================]
-[section:stopwatch_accumulator_hpp Header `<boost/chrono/stopwatch_accumulator.hpp>`]
+[section:stopwatch_accumulator_hpp Header `<boost/stopwatches/stopwatch_accumulator.hpp>`]
[/==================================================]
- namespace boost { namespace chrono {
+ namespace boost { namespace stopwatches {
template <class Clock,
typename Features=accumulators::features<
accumulators::tag::count,
@@ -1415,23 +1430,23 @@
The library provides stopwatch_accumulator shortcuts for all the models of __Clock__, replacing clock by stopwatch_accumulator.
- typedef boost::chrono::stopwatch_accumulator< boost::chrono::system_clock >
+ typedef boost::stopwatches::stopwatch_accumulator< boost::chrono::system_clock >
system_stopwatch_accumulator;
#ifdef __BOOST_CHRONO_HAS_CLOCK_MONOTONIC
- typedef boost::chrono::stopwatch_accumulator< boost::chrono::monotonic_clock >
+ typedef boost::stopwatches::stopwatch_accumulator< boost::chrono::monotonic_clock >
monotonic_stopwatch_accumulator;
#endif
- typedef boost::chrono::stopwatch_accumulator< boost::chrono::high_resolution_clock >
+ typedef boost::stopwatches::stopwatch_accumulator< boost::chrono::high_resolution_clock >
high_resolution_stopwatch_accumulator;
[endsect]
[endsect]
[/==================================================]
-[section:stopwatch_scoped_hpp Header `<boost/chrono/stopwatch_scoped.hpp>`]
+[section:stopwatch_scoped_hpp Header `<boost/stopwatches/stopwatch_scoped.hpp>`]
[/==================================================]
- namespace boost { namespace chrono {
+ namespace boost { namespace stopwatches {
template <class Stopwatch> class stopwatch_runner;
template <class Stopwatch> class stopwatch_suspender;
template <class Stopwatch> class stopwatch_resumer;
@@ -1570,10 +1585,10 @@
[endsect]
[/==================================================]
-[section:stopwatch_reporter_hpp Header `<boost/chrono/stopwatch_reporter.hpp>`]
+[section:stopwatch_reporter_hpp Header `<boost/stopwatches/stopwatch_reporter.hpp>`]
[/==================================================]
- namespace boost { namespace chrono {
+ namespace boost { namespace stopwatches {
template <class Stopwatch, class Formatter>
class basic_stopwatch_reporter;
@@ -1792,10 +1807,10 @@
[endsect]
[/==================================================]
-[section:stopclock_hpp Header `<boost/chrono/stopclock.hpp>`]
+[section:stopclock_hpp Header `<boost/stopwatches/stopclock.hpp>`]
[/==================================================]
- namespace boost { namespace chrono {
+ namespace boost { namespace stopwatches {
template < class Clock, class Formatter > class basic_stopclock;
template < class Clock, class Formatter > class __stopclock__;
template < class Clock, class Formatter > class wstopclock;
@@ -1913,19 +1928,19 @@
The library provides stopclock shortcuts for all the models of __Clock__, replacing clock by stopclock.
- typedef boost::chrono::stopclock< boost::chrono::system_clock >
+ typedef boost::stopwatches::stopclock< boost::chrono::system_clock >
system_stopwatch_stopclock;
#ifdef __BOOST_CHRONO_HAS_CLOCK_MONOTONIC
- typedef boost::chrono::stopclock< boost::chrono::monotonic_clock >
+ typedef boost::stopwatches::stopclock< boost::chrono::monotonic_clock >
monotonic_stopwatch_stopclock;
#endif
- typedef boost::chrono::stopclock< boost::chrono::high_resolution_clock >
+ typedef boost::stopwatches::stopclock< boost::chrono::high_resolution_clock >
high_resolution_stopclock;
- typedef boost::chrono::stopclock< boost::chrono::process_real_cpu_clock >
+ typedef boost::stopwatches::stopclock< boost::chrono::process_real_cpu_clock >
process_real_cpu_stopclock;
- typedef boost::chrono::stopclock< boost::chrono::process_user_cpu_clock >
+ typedef boost::stopwatches::stopclock< boost::chrono::process_user_cpu_clock >
process_user_cpu_stopclock;
- typedef boost::chrono::stopclock< boost::chrono::process_system_cpu_clock >
+ typedef boost::stopwatches::stopclock< boost::chrono::process_system_cpu_clock >
process_system_cpu_stopclock;
[endsect]
@@ -1979,19 +1994,19 @@
The library provides wstopclock shortcuts for all the models of __Clock__, replacing clock by wstopclock.
- typedef boost::chrono::wstopclock< boost::chrono::system_clock >
+ typedef boost::stopwatches::wstopclock< boost::chrono::system_clock >
system_wstopclock;
#ifdef __BOOST_CHRONO_HAS_CLOCK_MONOTONIC
- typedef boost::chrono::wstopclock< boost::chrono::monotonic_clock >
+ typedef boost::stopwatches::wstopclock< boost::chrono::monotonic_clock >
monotonic_wstopclock;
#endif
- typedef boost::chrono::wstopclock< boost::chrono::high_resolution_clock >
+ typedef boost::stopwatches::wstopclock< boost::chrono::high_resolution_clock >
high_resolution_wstopclock;
- typedef boost::chrono::wstopclock< boost::chrono::process_real_cpu_clock >
+ typedef boost::stopwatches::wstopclock< boost::chrono::process_real_cpu_clock >
process_real_cpu_wstopclock;
- typedef boost::chrono::wstopclock< boost::chrono::process_user_cpu_clock >
+ typedef boost::stopwatches::wstopclock< boost::chrono::process_user_cpu_clock >
process_user_cpu_wstopclock;
- typedef boost::chrono::wstopclock< boost::chrono::process_system_cpu_clock >
+ typedef boost::stopwatches::wstopclock< boost::chrono::process_system_cpu_clock >
process_system_cpu_wstopclock;
[endsect]
@@ -2000,10 +2015,10 @@
[endsect]
[/==================================================]
-[section:stopclock_accumulator_hpp Header `<boost/chrono/stopclock_accumulator.hpp>`]
+[section:stopclock_accumulator_hpp Header `<boost/stopwatches/stopclock_accumulator.hpp>`]
[/==================================================]
- namespace boost { namespace chrono {
+ namespace boost { namespace stopwatches {
template < class Clock, class Formatter >
class basic_stopclock_accumulator;
template < class Clock, class Formatter >
@@ -2130,19 +2145,19 @@
The library provides stopclock_accumulator shortcuts for all the models of __Clock__, replacing clock by stopclock_accumulator.
- typedef boost::chrono::stopclock_accumulator< boost::chrono::system_clock >
+ typedef boost::stopwatches::stopclock_accumulator< boost::chrono::system_clock >
system_stopclock_accumulator;
#ifdef __BOOST_CHRONO_HAS_CLOCK_MONOTONIC
- typedef boost::chrono::stopclock_accumulator< boost::chrono::monotonic_clock >
+ typedef boost::stopwatches::stopclock_accumulator< boost::chrono::monotonic_clock >
monotonic_stopclock_accumulator;
#endif
- typedef boost::chrono::stopclock_accumulator< boost::chrono::high_resolution_clock >
+ typedef boost::stopwatches::stopclock_accumulator< boost::chrono::high_resolution_clock >
high_resolution_stopclock_accumulator;
- typedef boost::chrono::stopclock_accumulator< boost::chrono::process_real_cpu_clock >
+ typedef boost::stopwatches::stopclock_accumulator< boost::chrono::process_real_cpu_clock >
process_real_cpu_stopclock_accumulator;
- typedef boost::chrono::stopclock_accumulator< boost::chrono::process_user_cpu_clock >
+ typedef boost::stopwatches::stopclock_accumulator< boost::chrono::process_user_cpu_clock >
process_user_cpu_stopclock_accumulator;
- typedef boost::chrono::stopclock_accumulator< boost::chrono::process_system_cpu_clock >
+ typedef boost::stopwatches::stopclock_accumulator< boost::chrono::process_system_cpu_clock >
process_system_cpu_stopclock_accumulator;
[endsect]
@@ -2197,29 +2212,29 @@
The library provides wstopclock_accumulator shortcuts for all the models of __Clock__, replacing clock by wstopclock_accumulator.
- typedef boost::chrono::wstopclock_accumulator< boost::chrono::system_clock >
+ typedef boost::stopwatches::wstopclock_accumulator< boost::chrono::system_clock >
system_wstopclock_accumulator;
#ifdef __BOOST_CHRONO_HAS_CLOCK_MONOTONIC
- typedef boost::chrono::wstopclock_accumulator< boost::chrono::monotonic_clock >
+ typedef boost::stopwatches::wstopclock_accumulator< boost::chrono::monotonic_clock >
monotonic_wstopclock_accumulator;
#endif
- typedef boost::chrono::wstopclock_accumulator< boost::chrono::high_resolution_clock >
+ typedef boost::stopwatches::wstopclock_accumulator< boost::chrono::high_resolution_clock >
high_resolution_wstopclock_accumulator;
- typedef boost::chrono::wstopclock_accumulator< boost::chrono::process_real_cpu_clock >
+ typedef boost::stopwatches::wstopclock_accumulator< boost::chrono::process_real_cpu_clock >
process_real_cpu_wstopclock_accumulator;
- typedef boost::chrono::wstopclock_accumulator< boost::chrono::process_user_cpu_clock >
+ typedef boost::stopwatches::wstopclock_accumulator< boost::chrono::process_user_cpu_clock >
process_user_cpu_wstopclock_accumulator;
- typedef boost::chrono::wstopclock_accumulator< boost::chrono::process_system_cpu_clock >
+ typedef boost::stopwatches::wstopclock_accumulator< boost::chrono::process_system_cpu_clock >
process_system_cpu_wstopclock_accumulator;
[endsect]
[endsect]
[/==================================================]
-[section:scoped_stopclock_hpp Header `<boost/chrono/scoped_stopclock.hpp>`]
+[section:scoped_stopclock_hpp Header `<boost/stopwatches/scoped_stopclock.hpp>`]
[/==================================================]
- namespace boost { namespace chrono {
+ namespace boost { namespace stopwatches {
template < class Clock, class Formatter > class scoped_stopclock;
}}
@@ -2305,10 +2320,10 @@
[section:formatters Stopwatch Formatters]
[/==================================================]
-[section:stopwatch_formatter_hpp Header `<boost/chrono/stopwatch_formatter.hpp>`]
+[section:stopwatch_formatter_hpp Header `<boost/stopwatches/stopwatch_formatter.hpp>`]
[/==================================================]
- namespace boost { namespace chrono {
+ namespace boost { namespace stopwatches {
template <
typename CharT=char,
typename Traits=std::char_traits<CharT>,
@@ -2355,10 +2370,10 @@
[endsect]
[/==================================================]
-[section:stopwatch_accumulator_formatter_hpp Header `<boost/chrono/stopwatch_accumulator_formatter.hpp>`]
+[section:stopwatch_accumulator_formatter_hpp Header `<boost/stopwatches/stopwatch_accumulator_formatter.hpp>`]
[/==================================================]
- namespace boost { namespace chrono {
+ namespace boost { namespace stopwatches {
template <
typename CharT=char,
typename Traits=std::char_traits<CharT>,
@@ -2420,10 +2435,10 @@
[endsect]
[endsect]
[/==================================================================]
-[section:time_formatter_hpp Header `<boost/chrono/time_formatter.hpp>`]
+[section:time_formatter_hpp Header `<boost/stopwatches/time_formatter.hpp>`]
[/==================================================================]
- namespace boost { namespace chrono {
+ namespace boost { namespace stopwatches {
template <
typename CharT=char,
@@ -2498,10 +2513,10 @@
[endsect]
[/==================================================]
-[section:stopwatch_accumulator_time_formatter_hpp Header `<boost/chrono/stopwatch_accumulator_time_formatter.hpp>`]
+[section:stopwatch_accumulator_time_formatter_hpp Header `<boost/stopwatches/stopwatch_accumulator_time_formatter.hpp>`]
[/==================================================]
- namespace boost { namespace chrono {
+ namespace boost { namespace stopwatches {
template <
typename CharT=char,
typename Traits=std::char_traits<CharT>,
@@ -2573,10 +2588,10 @@
[endsect]
[/==================================================]
-[section:t24_hours_hpp Header `<boost/chrono/t24_hours.hpp>`]
+[section:t24_hours_hpp Header `<boost/stopwatches/t24_hours.hpp>`]
[/==================================================]
- namespace boost { namespace chrono {
+ namespace boost { namespace stopwatches {
class t24_hours;
}}
@@ -2621,11 +2636,11 @@
[endsect]
[/==================================================================]
-[section:t24_hours_formatter_hpp Header `<boost/chrono/t24_hours_formatter.hpp>`]
+[section:t24_hours_formatter_hpp Header `<boost/stopwatches/t24_hours_formatter.hpp>`]
[/==================================================================]
- namespace boost { namespace chrono {
+ namespace boost { namespace stopwatches {
template <
typename CharT=char,
@@ -2957,6 +2972,42 @@
[/======================================]
[section:rationale Appendix B: Rationale]
+[heading How reliable are these measures?]
+
+[/note this section need to be reworked, the ideas are there, but ...]
+
+
+There are three cases which can lead to get unreliable measures:
+
+* It is not possible to measure events that transpire at rates of the same order of magnitude as the clock's precision with any reliability. For example, a 10ms clock cannot be used reliably to measure elapsed times of tens of milliseconds. The library provides a [high_resolution_clock] that gives you the highest resolution time available on your platform. That will give the best precision, but can only be used for reliable measurement of events that elapse about an order of magnitude slower than that clock's precision.
+
+
+``
+#include <boost/chrono/chrono.hpp>
+ ...
+ __stopclock__<__high_resolution_clock__> _;
+``
+
+* Using a process clock in a multithreaded application will give elapsed time for the process as a whole, including threads other than the calling thread. To get time elapsed for a specific thread, use the supplied __thread_clock__ which returns time elapsed for the calling thread only, if supported by the platform.
+
+* When stopclocks are nested, usually from stopclocks appearing in each of several nested function calls, the overhead of the stopclock processing begins to be significant relative to run time of the code being measured. The innermost measurements remain accurate, but those in the outermost layers can measure too much overhead to be trustworthy.
+
+* Nested stopclocks (usually nested function calls where each function contains a stopclock). When the nesting is deep enough, the cumulative overhead of all the stopclock functionality make the data unreliable except for the inner-most trace points. The question is, how much time is related to the application code we want to measure and how much to the fact we are meassuring and logging in inner blocks?
+
+
+Most of the stopclock overhead is likely due to logging. There are two things we can do to make the difference :
+
+* Don't flush log information while measuring elapsed time. A __stopwatch_accumulator__ can make that possible, because it don't report until all the measures have been compiled and then report some statistics. Alternatively, an asynchronous stream would permit normal logging but by a thread other than the one being measured.
+
+* Add a mechanism to track the difference between the application time and stopclock time. If a __Clock__ models __SuspendibleClock__ and its precision is sufficiently fine, this mechanism could suspend the __Clock_s__ counting while reporting measurements and resume it thereafter.
+
+[/
+ stopclock<suspendible_clock<Clock> > _;
+
+
+See the performances section for more deep details.
+]
+
[endsect]
@@ -2983,7 +3034,7 @@
The library do not provides this feature.
-[heading What happens if I press Ctrl+C and program terminates? What log would Boost.chrono output?]
+[heading What happens if I press Ctrl+C and program terminates? What log would Boost.Stopwatches output?]
[endsect]
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