automotive-message-broker  0.14.0
timestamp.h
1 #ifndef _TIMESTAMP_H___
2 #define _TIMESTAMP_H___
3 
4 
5 namespace amb {
6 
7 double currentTime();
8 
9 class Timestamp {
10 protected:
11  Timestamp();
12 
13 public:
14 
15  double currentTime();
16 
17  double epochTime(double time);
18 
19  double epochTime();
20 
21 public:
22  static Timestamp *instance();
23 
24 private:
25  double startTimeEpoch;
26  static Timestamp* mInstance;
27 };
28 
29 }
30 
31 #endif
Definition: abstractpropertytype.h:256
Definition: timestamp.h:9