RealTimeStopwatch.h
Go to the documentation of this file.
1 #ifndef _utl_RealTimeStopwatch_h_
2 #define _utl_RealTimeStopwatch_h_
3 
4 #include <sys/time.h>
5 #include <utl/AugerUnits.h>
6 
7 namespace utl {
8 
20 
21  public:
22  RealTimeStopwatch(const bool start = true);
23 
24  void Reset();
25  void Start();
27  double Stop();
28  double GetTime();
29 
30  private:
31  bool fIsStopped;
32  struct timeval fStart;
33  double fTimeSum;
34 
35  };
36 
37 } // namespace utl
38 
39 #endif
40 
41 // Configure (x)emacs for this file ...
42 // Local Variables:
43 // mode: c++
44 // End:
RealTimeStopwatch(const bool start=true)
double Stop()
returns time since last call to Start()

, generated on Tue Sep 26 2023.