Defines the timebase of the location service.
More...
#include <clock.h>
|
typedef std::chrono::high_resolution_clock | Type |
| The underlying clock we are assuming for all time-stamping purposes. More...
|
|
typedef std::chrono::high_resolution_clock::duration | Duration |
| Duration type of the location service clock. More...
|
|
typedef std::chrono::high_resolution_clock::time_point | Timestamp |
| Timestamp type of the location service clock. More...
|
|
Defines the timebase of the location service.
Definition at line 32 of file clock.h.
Duration type of the location service clock.
Definition at line 40 of file clock.h.
Timestamp type of the location service clock.
Definition at line 45 of file clock.h.
The underlying clock we are assuming for all time-stamping purposes.
Definition at line 35 of file clock.h.
static Timestamp com::ubuntu::location::Clock::beginning_of_time |
( |
| ) |
|
|
inlinestatic |
Samples a timestamp from the clock.
- Returns
- The minimum point in time representable by this clock.
Definition at line 60 of file clock.h.
static Timestamp com::ubuntu::location::Clock::now |
( |
| ) |
|
|
inlinestatic |
Samples a timestamp from the clock.
- Returns
- The current time.
Definition at line 51 of file clock.h.
The documentation for this struct was generated from the following file:
- /build/location-service-fv7VqS/location-service-3.0.0/include/location_service/com/ubuntu/location/clock.h