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.
|
|
typedef std::chrono::high_resolution_clock::duration | Duration |
| Duration type of the location service clock.
|
|
typedef std::chrono::high_resolution_clock::time_point | Timestamp |
| Timestamp type of the location service clock.
|
|
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: