20 Time(U32 seconds, U32 useconds);
32 void set(U32 seconds, U32 useconds);
33 void set(
TimeBase timeBase, U32 seconds, U32 useconds);
41 void set(
F64 seconds);
99 const Time& subtrahend
113 void add(U32 seconds, U32 mseconds);
119 #ifdef BUILD_UT // Stream operators to support Googletest 120 friend std::ostream& operator<<(std::ostream& os,
const Time& val);
bool operator<=(const Time &other) const
Time & operator=(const Time &other)
TimeValue asTimeValue() const
get the underlying TimeValue
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)
bool operator==(const Time &other) const
SerializeStatus
forward declaration for string
static Time zero(TimeBase timeBase=TimeBase::TB_NONE)
The type of a comparison result.
bool operator!=(const Time &other) const
void setTimeContext(FwTimeContextStoreType context)
static U32 parseUSeconds(F64 seconds)
Extract microseconds from a floating-point (F64)
Time & operator+=(F64 seconds)
Add floating-point (F64) value to this Time.
bool operator>(const Time &other) const
bool operator>=(const Time &other) const
static U32 parseSeconds(F64 seconds)
Extract seconds from a floating-point (F64)
void setTimeBase(TimeBase timeBase)
static TimeComparison compare(const Time &time1, const Time &time2)
static Time add(const Time &a, const Time &b)
FwTimeContextStoreType getContext() const
double F64
64-bit floating point (double). Required for compiler-supplied double promotion.
SerializeStatus serializeTo(SerialBufferBase &buffer, Fw::Endianness mode=Fw::Endianness::BIG) const override
Serialize the contents of this object to a buffer.
U16 FwTimeBaseStoreType
The type used to serialize a time base value.
Implementation of malloc based allocator.
bool operator<(const Time &other) const
Define enumeration for Time base types.
SerializeStatus deserializeFrom(SerialBufferBase &buffer, Fw::Endianness mode=Fw::Endianness::BIG) override
Deserialize the contents of this object from a buffer.
Big endian serialization.