*
* timer.stop ();
*
- * std::cout << "Elapsed time: " << timer() << " seconds.";
+ * std::cout << "Elapsed CPU time: " << timer() << " seconds.";
+ * std::cout << "Elapsed wall time: " << timer.wall_time() << " seconds.";
*
* // reset timer for the next thing it shall do
* timer.reset();
void reset ();
/**
- * Access to the current time
+ * Access to the current CPU time
* without disturbing time
- * measurement. The elapsed time
- * is returned in units of
- * seconds.
+ * measurement. The elapsed time is
+ * returned in units of seconds.
*/
double operator() () const;
*/
double cumulative_time;
-
/**
- * Accumulated waoo time for all
+ * Accumulated wall time for all
* previous start()/stop() cycles. The
* wall time for the present cycle is
* not included.
*/
double cumulative_wall_time;
-
/**
* Store whether the timer is presently
* running.
<h3>base</h3>
<ol>
+ <li>
+ <p>
+ New: The Timer class can now also return the wall time using the method
+ Timer::wall_time(), as opposed to the CPU time returned by
+ Timer::operator ().
+ <br>
+ (Martin Kronbichler 2009/01/07)
+ </p>
+
<li>
<p>
New: The new class types_are_equal allows to write some templates more