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
Duration type of the location service clock.
Definition at line 40 of file clock.h.
◆ Timestamp
Timestamp type of the location service clock.
Definition at line 45 of file clock.h.
◆ Type
The underlying clock we are assuming for all time-stamping purposes.
Definition at line 35 of file clock.h.
◆ beginning_of_time()
static Timestamp com::lomiri::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.
◆ now()
static Timestamp com::lomiri::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-3.1.0~20230826211536.23~681ea63+ubports20.04/include/location_service/com/lomiri/location/clock.h