SyB3R - Synthetic Benchmark for 3D Reconstruction
CPUStopWatch.h
1 #ifndef CPUSTOPWATCH_H
2 #define CPUSTOPWATCH_H
3 
4 #include <chrono>
5 
6 namespace syb3r {
7 namespace tools {
8 
13 {
14  public:
15  CPUStopWatch();
16 
18  void start();
21  uint64_t getNanoseconds();
22  protected:
23  std::chrono::time_point<std::chrono::steady_clock> m_start;
24 };
25 
26 }
27 }
28 
29 #endif // CPUSTOPWATCH_H
Definition: CameraPathEvaluation.cpp:10
void start()
Resets the clock.
Definition: CPUStopWatch.cpp:12
uint64_t getNanoseconds()
Definition: CPUStopWatch.cpp:17
Measures elapsed time.
Definition: CPUStopWatch.h:12