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;
53 return std::chrono::high_resolution_clock::now();
62 return std::chrono::high_resolution_clock::time_point::min();
Defines the timebase of the location service.
std::chrono::high_resolution_clock::time_point Timestamp
Timestamp type of the location service clock.
static Timestamp now()
Samples a timestamp from the 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.
std::chrono::high_resolution_clock Type
The underlying clock we are assuming for all time-stamping purposes.