|
QGroundControl
Ground Control Station for MAVLink Drones
|
Functions | |
| uint64_t | nowUs () |
| template<typename Rep , typename Period > | |
| constexpr std::optional< std::chrono::duration< Rep, Period > > | age (std::chrono::duration< Rep, Period > timestamp, std::chrono::duration< Rep, Period > now) |
| Age of timestamp at now, both in the same unit; empty for a missing or future timestamp. | |
| constexpr std::optional< std::chrono::microseconds > | age (uint64_t timestampUs, uint64_t nowUs) |
| constexpr std::chrono::microseconds | remaining (uint64_t timestampUs, uint64_t nowUs, std::chrono::microseconds lifetime) |
| Time left before a receipt reaches lifetime; zero for a missing, future or expired one. | |
| constexpr bool | fresh (uint64_t timestampUs, uint64_t nowUs, std::chrono::microseconds lifetime) |
| Whether a receipt is younger than lifetime. | |
| constexpr bool | withinAge (uint64_t timestampUs, uint64_t nowUs, std::chrono::microseconds maximumAge) |
| Whether a receipt is at most maximumAge old, its limit included. | |
Timestamps from one monotonic clock domain. A zero (or negative) timestamp means "never", and a timestamp later than now has no age.
|
constexpr |
Age of timestamp at now, both in the same unit; empty for a missing or future timestamp.
Definition at line 19 of file MonotonicClock.h.
Referenced by age(), NTRIPConnectionStats::correctionAgeSec(), NTRIPSourceTableController::fetch(), remaining(), GPSCorrectionSelector::submit(), and withinAge().
|
constexpr |
Definition at line 28 of file MonotonicClock.h.
|
constexpr |
Whether a receipt is younger than lifetime.
Definition at line 44 of file MonotonicClock.h.
References nowUs(), and remaining().
Referenced by NTRIPSourceTableController::fetch(), GPSIntegrityReport::freshAt(), and GPSInputMonitor::update().
|
inline |
Definition at line 10 of file MonotonicClock.h.
Referenced by age(), fresh(), ReadTimestamp::nowUs(), QtRuntimeScheduler::nowUs(), remaining(), SerialAutoConnect::update(), and withinAge().
|
constexpr |
Time left before a receipt reaches lifetime; zero for a missing, future or expired one.
Definition at line 34 of file MonotonicClock.h.
References age(), and nowUs().
Referenced by fresh().
|
constexpr |
Whether a receipt is at most maximumAge old, its limit included.
Definition at line 50 of file MonotonicClock.h.
References age(), and nowUs().
Referenced by NMEA::NavigationEpochAssembler::expireUntimedMetadata().