DAQpp::GTimer Class Reference

class GTimer More...

#include <GTimer.h>

List of all members.

Public Member Functions

 GTimer ()
 ~GTimer ()
void start ()
 Starts the timer.
void stop ()
 Stops the timer.
void reset ()
 resets the timer without stopping it
double operator() () const
 returns the time in seconds elapsed since the start
bool is_active () const
 returns true if the timer is active

Private Attributes

struct timeval _start
 start time of the timer
struct timeval _end
 stop time of the timer
bool active
 flags saying if the timer is active or not

Detailed Description

class GTimer

This class implemets a timer. It is mainly used internally by the RunState objects.

Carlos Lacasta

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

Generated on Mon Apr 21 10:00:04 2008 for DAQ++ by  doxygen 1.5.5