GenLib2::Timer Class Reference

Timer class. More...

#include <timer.h>

List of all members.

Public Member Functions

 Timer ()
 constructor
void reset ()
 reset timer (set elapsed time to 0)
void start ()
 start timer
double stop ()
 stop timer and return elapsed time in seconds
double time ()
 return elapsed time in seconds

Private Attributes

bool _running
 timer running
clock_t _accu
 accumulator
clock_t _last_time
 last time


Detailed Description

Timer class.

Simple stopwatch using ISO C function clock. Be carefull, the measured CPU-time might be implementation dependent.

Author:
Dirk Stallmann

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

Generated on Wed Aug 6 15:46:43 2008 by  doxygen 1.5.5