otsdaq  v2_01_00
TimeFormatter.h
1 #ifndef ots_TimeFormatter_h
2 #define ots_TimeFormatter_h
3 
4 #include <string>
5 #include <sys/time.h>
6 
7 namespace ots
8 {
9 
11 {
12 public:
13 
14  TimeFormatter(std::string source);
15  ~TimeFormatter(void);
16 
17  //Static memebers
18  static std::string getTime (void);
19  static std::string getmSecTime(void);
20 
21  void stopTimer (void);
22  struct tm* getITime (void);
23  struct timeval getImSecTime(void);
24 
25 
26 private:
27 
28  struct timeval startTime_;
29  struct timeval endTime_;
30  std::string origin_;
31  bool verbose_;
32 };
33 
34 }
35 #endif