25 #ifndef SRC_TIME_TIMESTAMPINFO_H_ 26 #define SRC_TIME_TIMESTAMPINFO_H_ 43 double resolution_secs;
45 double drift_secs_per_hour;
46 double average_latency_secs;
49 TimestampInfo(Scope scope, Basis basis,
double resolution_secs,
50 double accuracy_secs,
double drift_secs_per_hour,
51 double average_latency_secs,
Timestamp& default_timestamp) {
54 this->resolution_secs = resolution_secs;
55 this->accuracy_secs = accuracy_secs;
56 this->drift_secs_per_hour = drift_secs_per_hour;
57 this->default_timestamp = default_timestamp;
58 this->average_latency_secs = average_latency_secs;
67 double getTimestampResolutionSecs() {
68 return resolution_secs;
70 double getTimestampAccuracyPlusMinusSecs() {
73 double getTimestampDriftSecsPerHour() {
74 return drift_secs_per_hour;
76 double getAverageLatencySecs() {
77 return average_latency_secs;
80 return default_timestamp;
Definition: TimestampInfo.h:28
Definition: Timestamp.h:30