18 #ifndef LOCATION_SERVICE_COM_UBUNTU_LOCATION_CLOCK_H_ 19 #define LOCATION_SERVICE_COM_UBUNTU_LOCATION_CLOCK_H_ 35 typedef std::chrono::high_resolution_clock
Type;
40 typedef std::chrono::high_resolution_clock::duration
Duration;
45 typedef std::chrono::high_resolution_clock::time_point
Timestamp;
51 static inline Timestamp
now()
53 return std::chrono::high_resolution_clock::now();
62 return std::chrono::high_resolution_clock::time_point::min();
69 #endif // LOCATION_SERVICE_COM_UBUNTU_LOCATION_CLOCK_H_ Defines the timebase of the location service.
static Timestamp now()
Samples a timestamp from the clock.
std::chrono::high_resolution_clock Type
The underlying clock we are assuming for all time-stamping purposes.
std::chrono::high_resolution_clock::time_point Timestamp
Timestamp type of the location service clock.
std::chrono::high_resolution_clock::duration Duration
Duration type of the location service clock.
static Timestamp beginning_of_time()
Samples a timestamp from the clock.