6 this->
set(other.m_seconds,other.m_useconds);
10 this->
set(seconds,useconds);
14 this->m_seconds = seconds;
15 this->m_useconds = useconds;
19 this->m_useconds = other.m_useconds;
20 this->m_seconds = other.m_seconds;
43 return ((
GT == c) or (
EQ == c));
48 return ((
LT == c) or (
EQ == c));
58 return buffer.
serialize(this->m_useconds);
73 return this->m_seconds;
77 return this->m_useconds;
95 }
else if (us1 < us2) {
97 }
else if (us1 > us2) {
113 if (uSeconds >= 1000000) {
138 return TimeInterval(seconds,
static_cast<U32
>(uSeconds));
142 this->m_seconds += seconds;
143 this->m_useconds += useconds;
145 if (this->m_useconds >= 1000000) {
146 this->m_seconds += 1;
147 this->m_useconds -= 1000000;
152 std::ostream& operator<<(std::ostream& os,
const TimeInterval& val) {
PlatformAssertArgType FwAssertArgType
C++-compatible configuration header for fprime configuration.
SerializeStatus deserialize(U8 &val)
deserialize 8-bit unsigned int
SerializeStatus serialize(U8 val)
serialize 8-bit unsigned int
void add(U32 seconds, U32 mseconds)
TimeInterval & operator=(const TimeInterval &other)
static Comparison compare(const TimeInterval &time1, const TimeInterval &time2)
bool operator!=(const TimeInterval &other) const
bool operator<(const TimeInterval &other) const
SerializeStatus serialize(SerializeBufferBase &buffer) const
serialize contents
static TimeInterval sub(const TimeInterval &t1, const TimeInterval &t2)
bool operator>=(const TimeInterval &other) const
Comparison
The type of a comparison result.
bool operator==(const TimeInterval &other) const
bool operator<=(const TimeInterval &other) const
SerializeStatus deserialize(SerializeBufferBase &buffer)
deserialize to contents
void set(U32 seconds, U32 useconds)
bool operator>(const TimeInterval &other) const
SerializeStatus
forward declaration for string
@ FW_SERIALIZE_OK
Serialization/Deserialization operation was successful.