libmove3d-planners
 All Classes Namespaces Files Functions Variables Enumerations Enumerator Friends Macros Groups Pages
Chronometer.hpp
1 #ifndef CHRONOMETER_HPP
2 #define CHRONOMETER_HPP
3 
4 #include <time.h>
5 #include "time.h"
6 #include <exception>
7 #include <string>
8 
10 {
11 public:
12  class ChronometerException: std::exception{
13  public:
15  const char * what(){return _what;}
16  private:
17  static char _what[50];
18  };
19 
20  Chronometer();
21 
22  void reset(void);
23  long int getNanoSec(void);
24  double getMilliSec(void);
25  long int getMicroSec(void);
26  timespec getTimespec(void);
27 
28 private:
29  timespec _ts;
30 };
31 
32 #endif // CHRONOMETER_HPP
Definition: Chronometer.hpp:12
Definition: Chronometer.hpp:9