CARMA C++
ScopedStopWatchTimer.h
1 #ifndef CARMA_UTIL_SCOPEDSTOPWATCHTIMER_H
2 #define CARMA_UTIL_SCOPEDSTOPWATCHTIMER_H
3 
4 namespace carma {
5 namespace util {
6 
7 class StopWatch;
8 
13 public:
14 
15  explicit ScopedStopWatchTimer( carma::util::StopWatch & stopwatch );
16 
17  virtual ~ScopedStopWatchTimer( );
18 
19 private:
20 
21  carma::util::StopWatch & stopWatch_;
22 
23 }; // class ScopedStopWatchTimer
24 
25 }} // namespace carma::util;
26 #endif
Class for determining the elapsed wall-clock or CPU time between two events.
Definition: StopWatch.h:22
Starts and stops attached stopwatch via ctor & dtor respectively.