TCPSPSuite
timer.hpp
1 #ifndef TIMER_H
2 #define TIMER_H
3 
4 #include <chrono>
5 
6 class Timer {
7 public:
8  void start();
9  double stop();
10  double get() const;
11 
12 private:
13  std::chrono::steady_clock::time_point started;
14 };
15 
16 #endif