QGroundControl
Ground Control Station for MAVLink Drones
Loading...
Searching...
No Matches
ReadTimestamp Class Referenceabstract

Byte streams preserve the producer receipt time across buffering and decoding. More...

#include <ReadTimestamp.h>

Public Member Functions

virtual ~ReadTimestamp ()=default
 
virtual quint64 lastReadTimestampUs () const =0
 

Static Public Member Functions

static quint64 nowUs ()
 
static quint64 from (const QIODevice *device, quint64 fallbackTimestampUs=nowUs())
 

Detailed Description

Byte streams preserve the producer receipt time across buffering and decoding.

Definition at line 8 of file ReadTimestamp.h.

Constructor & Destructor Documentation

◆ ~ReadTimestamp()

virtual ReadTimestamp::~ReadTimestamp ( )
virtualdefault

Member Function Documentation

◆ from()

static quint64 ReadTimestamp::from ( const QIODevice *  device,
quint64  fallbackTimestampUs = nowUs() 
)
inlinestatic

Provider and fallback timestamps must use the consumer's monotonic clock domain. A provider's zero timestamp remains unknown; it must not become a fresh receipt.

Definition at line 18 of file ReadTimestamp.h.

References lastReadTimestampUs().

◆ lastReadTimestampUs()

virtual quint64 ReadTimestamp::lastReadTimestampUs ( ) const
pure virtual

Referenced by from().

◆ nowUs()

static quint64 ReadTimestamp::nowUs ( )
inlinestatic

Definition at line 11 of file ReadTimestamp.h.

References MonotonicClock::nowUs().


The documentation for this class was generated from the following file: