Dune::Timer Class Reference
[Common]

#include <timer.hh>

List of all members.


Detailed Description

A simple stop watch.

This class reports the elapsed user-time, i.e. time spent computing, after the last call to Timer::reset(). The results are seconds and fractional seconds. Note that the resolution of the timing depends on your OS kernel which should be somewhere in the milisecond range.

The class is basically a wrapper for the libc-function getrusage()

Public Member Functions

 Timer () throw (TimerError)
 A new timer, start immediately.
void reset () throw (TimerError)
 Reset timer.
double elapsed () const throw (TimerError)
 Get elapsed user-time in seconds.


The documentation for this class was generated from the following file:

Generated on Sun Nov 15 22:28:22 2009 for dune-common by  doxygen 1.5.6