My Project
 All Classes Files Functions Variables Enumerations Enumerator Friends Macros Pages
Timer.h
Go to the documentation of this file.
1 // $Id: Timer.h,v 1.1 2009/08/17 17:19:31 eml Exp $
2 
3 #ifndef GCP_UTIL_TIMER_H
4 #define GCP_UTIL_TIMER_H
5 
15 #include "gcp/util/common/TimeVal.h"
16 
17 namespace gcp {
18  namespace util {
19 
20  class Timer {
21  public:
22 
26  Timer();
27 
31  virtual ~Timer();
32 
33  void start();
34  void stop();
35  double deltaInSeconds();
36 
37  private:
38 
39  TimeVal start_;
40  TimeVal stop_;
41  TimeVal diff_;
42 
43  }; // End class Timer
44 
45  } // End namespace util
46 } // End namespace gcp
47 
48 
49 
50 #endif // End #ifndef GCP_UTIL_TIMER_H
Timer()
Definition: Timer.cc:10
Definition: Timer.h:20
Definition: TimeVal.h:55
virtual ~Timer()
Definition: Timer.cc:15