5 #ifndef OS_DELEGATERAWTIME_HPP_ 6 #define OS_DELEGATERAWTIME_HPP_ 122 #endif // OS_DELEGATERAWTIME_HPP_ RawTimeSource
Timer source selection for RawTime.
Platform's default timer (maintains current behavior)
RawTimeHandle * getHandle() override
return the underlying RawTime handle (implementation specific)
RawTimeSource getSource() const
Get the timer source used by this RawTime instance.
U8 RawTimeHandleStorage[FW_RAW_TIME_HANDLE_MAX_SIZE]
Status now() override
Get the current time.
SerializeStatus
forward declaration for string
Status getTimeInterval(const Os::RawTime &other, Fw::TimeInterval &interval) const override
Calculate the time interval between this and another raw time.
Fw::SerializeStatus deserializeFrom(Fw::SerialBufferBase &buffer, Fw::Endianness mode=Fw::Endianness::BIG) override
Deserialize the contents of the RawTimeInterface object from a buffer.
bool operator==(const RawTime &other) const override
Compare whether two RawTime objects are the same (i.e. refer to the same microsecond) ...
Fw::SerializeStatus serializeTo(Fw::SerialBufferBase &buffer, Fw::Endianness mode=Fw::Endianness::BIG) const override
Serialize the contents of the RawTimeInterface object into a buffer.
Status getDiffUsec(const RawTime &other, U32 &result) const override
Calculate the difference in microseconds between two RawTime objects.
~DelegateRawTime() final
Destructor.
DelegateRawTime()
Default constructor.
DelegateRawTime & operator=(const DelegateRawTime &other)
assignment operator that copies the internal representation
Big endian serialization.