High Performance Plasticity  0.5.0
profUtils.h
Go to the documentation of this file.
1 
6 #ifndef HPP_PROFUTILS_H
7 #define HPP_PROFUTILS_H
8 
9 #include <iostream>
10 #include <ctime>
11 #include <hpp/config.h>
12 
13 namespace hpp {
14 
15 class Timer {
16 public:
17  Timer();
18  void start();
19  void stop();
20  double getDuration(){return duration;}
21 private:
22  double duration = 0.0;
23  bool running = false;
24  timespec beg_, end_;
25 };
26 
27 } //END NAMESPACE HPP
28 
29 #endif /* HPP_PROFUTILS_H */
double duration
Definition: profUtils.h:22
Definition: casesUtils.cpp:4
double getDuration()
Definition: profUtils.h:20
timespec beg_
Definition: profUtils.h:24
bool running
Definition: profUtils.h:23
timespec end_
Definition: profUtils.h:24
void stop()
Definition: profUtils.cpp:22
Timer()
Definition: profUtils.cpp:7
Definition: profUtils.h:15
void start()
Definition: profUtils.cpp:12