1 #ifndef FW_TIME_INTERVAL_HPP 2 #define FW_TIME_INTERVAL_HPP 27 void set(U32 seconds, U32 useconds);
33 void add(U32 seconds, U32 mseconds);
69 #ifdef BUILD_UT // Stream operators to support Googletest 70 friend std::ostream& operator<<(std::ostream& os,
const TimeInterval& val);
Data structure for Time Interval.
SerializeStatus deserializeFrom(SerializeBufferBase &buffer) override
deserialize contents from buffer
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 serializeTo(SerializeBufferBase &buffer) const override
serialize contents to buffer
bool operator==(const TimeInterval &other) const
Comparison
The type of a comparison result.