timer.h

Go to the documentation of this file.
00001 
00004 #ifndef _timer_h
00005 #define _timer_h
00006 #include <sys/time.h>
00007 #include "globals.h"
00008 
00012 class Timer {
00013  private:
00015   bool bStart;
00017   timeval _start,_stop;
00018  public:
00022   Timer(); 
00027   Timer(bool bStart);
00031   void start();
00036   double stop();
00041   double getElapsedTime(); 
00042 };
00043 #endif

Generated on Wed Dec 15 10:46:15 2010 for Hazy_System by  doxygen 1.4.7