stopwatch.hpp
Go to the documentation of this file.
1 
8 /*****************************************************************************
9 ** Ifdefs
10 *****************************************************************************/
11 
12 #ifndef ECL_STOPWATCH_HPP_
13 #define ECL_STOPWATCH_HPP_
14 
15 /*****************************************************************************
16 ** Includes
17 *****************************************************************************/
18 
19 #include <ecl/config/macros.hpp>
20 #include "timestamp.hpp"
21 #include "macros.hpp"
22 
23 #ifdef ECL_HAS_TIMESTAMP
24 
25 /*****************************************************************************
26 ** Namespaces
27 *****************************************************************************/
28 
29 namespace ecl {
30 
31 /*****************************************************************************
32 ** Classes
33 *****************************************************************************/
56 class ecl_time_PUBLIC StopWatch
57 {
58  public:
63  StopWatch();
64 
65  virtual ~StopWatch() {}
72  void restart();
73 
80  TimeStamp elapsed();
87  TimeStamp split();
88 
89  private:
90  TimeStamp start_time, split_time;
91 };
92 
93 
94 }; // namespace ecl
95 
96 #endif /* ECL_HAS_TIMESTAMP */
97 #endif /* ECL_STOPWATCH_HPP_ */
macros.hpp
Macros for ecl time.
timestamp.hpp
Cross-platform header inclusions for the timestamp class.
ecl_time_PUBLIC
#define ecl_time_PUBLIC
Definition: macros.hpp:37
macros.hpp
ecl
Embedded control libraries.


ecl_time
Author(s): Daniel Stonier
autogenerated on Wed Mar 2 2022 00:16:19