hdnum::Timer Class Reference

A simple stop watch. More...

#include <timer.hh>

List of all members.

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.


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()

Taken from the DUNE project www.dune-project.org


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

Generated on Mon Oct 12 21:45:50 2009 for Heidelberg Educational Numerics Library by  doxygen 1.5.5