1 #ifndef FW_TIME_INTERVAL_HPP 2 #define FW_TIME_INTERVAL_HPP 29 void set(U32 seconds, U32 useconds);
37 void add(U32 seconds, U32 mseconds);
73 #ifdef BUILD_UT // Stream operators to support Googletest 74 friend std::ostream& operator<<(std::ostream& os,
const TimeInterval& val);
SerializeStatus serializeTo(SerialBufferBase &buffer, Fw::Endianness mode=Fw::Endianness::BIG) const override
Serialize the contents of this object to a buffer.
Data structure for Time Interval.
bool operator>=(const TimeInterval &other) const
bool operator<(const TimeInterval &other) const
static Comparison compare(const TimeInterval &time1, const TimeInterval &time2)
bool operator!=(const TimeInterval &other) const
TimeInterval & operator=(const TimeInterval &other)
SerializeStatus
forward declaration for string
static TimeInterval sub(const TimeInterval &t1, const TimeInterval &t2)
bool operator<=(const TimeInterval &other) const
void add(U32 seconds, U32 mseconds)
bool operator>(const TimeInterval &other) const
SerializeStatus deserializeFrom(SerialBufferBase &buffer, Fw::Endianness mode=Fw::Endianness::BIG) override
Deserialize the contents of this object from a buffer.
bool operator==(const TimeInterval &other) const
Comparison
The type of a comparison result.
Implementation of malloc based allocator.
Big endian serialization.