19 Time(U32 seconds, U32 useconds);
26 void set(U32 seconds, U32 useconds);
27 void set(
TimeBase timeBase, U32 seconds, U32 useconds);
71 const Time& subtrahend
75 void add(U32 seconds, U32 mseconds);
77 #ifdef BUILD_UT // Stream operators to support Googletest 78 friend std::ostream& operator<<(std::ostream& os,
const Time& val);
bool operator<=(const Time &other) const
Time & operator=(const Time &other)
TimeBase getTimeBase() const
No time base has been established (Required)
U8 FwTimeContextStoreType
The type used to serialize a time context value.
static Time sub(const Time &minuend, const Time &subtrahend)
Comparison
The type of a comparison result.
bool operator==(const Time &other) const
SerializeStatus
forward declaration for string
static Time zero(TimeBase timeBase=TimeBase::TB_NONE)
bool operator!=(const Time &other) const
void setTimeContext(FwTimeContextStoreType context)
bool operator>(const Time &other) const
bool operator>=(const Time &other) const
void setTimeBase(TimeBase timeBase)
static Time add(const Time &a, const Time &b)
FwTimeContextStoreType getContext() const
SerializeStatus deserializeFrom(SerializeBufferBase &buffer) override
deserialize contents from buffer
SerializeStatus serializeTo(SerializeBufferBase &buffer) const override
serialize contents to buffer
static Comparison compare(const Time &time1, const Time &time2)
U16 FwTimeBaseStoreType
The type used to serialize a time base value.
bool operator<(const Time &other) const
Define enumeration for Time base types.