F´ Flight Software - C/C++ Documentation
NASA-v1.5.0
A framework for building embedded system applications to NASA flight quality standards.
|
Go to the documentation of this file.
21 this->
set(timeBase,0,seconds,useconds);
29 this->
set(timeBase,0,seconds,useconds);
33 this->
set(timeBase,context,seconds,useconds);
40 this->m_seconds = seconds;
47 this->m_seconds = other.m_seconds;
70 return ((
GT == c) or (
EQ == c));
75 return ((
LT == c) or (
EQ == c));
88 #if FW_USE_TIME_CONTEXT
118 #if FW_USE_TIME_CONTEXT
135 return this->m_seconds;
153 Time time(timeBase,0, 0, 0);
166 #if FW_USE_TIME_CONTEXT
176 }
else if (s1 > s2) {
178 }
else if (us1 < us2) {
180 }
else if (us1 > us2) {
196 #if FW_USE_TIME_CONTEXT
202 if (uSeconds >= 1000000) {
219 #if FW_USE_TIME_CONTEXT
237 this->m_seconds += seconds;
240 if (this->m_useconds >= 1000000) {
242 this->m_useconds -= 1000000;
255 std::ostream& operator<<(std::ostream& os,
const Time& val) {
SerializeStatus
forward declaration for string
static Time sub(Time &minuend, Time &subtrahend)
TimeBase getTimeBase(void) const
SerializeStatus serialize(U8 val)
serialize 8-bit unsigned int
uint8_t U8
8-bit unsigned integer
FwTimeContextStoreType m_timeContext
U32 getUSeconds(void) const
bool operator!=(const Time &other) const
const Time & operator=(const Time &other)
SerializeStatus deserialize(SerializeBufferBase &buffer)
deserialize to contents
static Time zero(TimeBase timeBase=TB_NONE)
#define FwTimeContextStoreType
Storage conversion for time context in scripts/ground interface.
@ FW_SERIALIZE_OK
Serialization/Deserialization operation was successful.
bool operator<(const Time &other) const
void set(U32 seconds, U32 useconds)
bool operator>=(const Time &other) const
Comparison
The type of a comparison result.
void setTimeBase(TimeBase timeBase)
static Comparison compare(const Time &time1, const Time &time2)
FwTimeContextStoreType getContext(void) const
bool operator<=(const Time &other) const
U32 getSeconds(void) const
SerializeStatus deserialize(U8 &val)
deserialize 8-bit unsigned int
#define FwTimeBaseStoreType
Storage conversion for time base in scripts/ground interface.
SerializeStatus serialize(SerializeBufferBase &buffer) const
serialize contents
bool operator==(const Time &other) const
Declares ISF basic types.
void setTimeContext(FwTimeContextStoreType context)
static Time add(Time &a, Time &b)
bool operator>(const Time &other) const
@ TB_NONE
No time base has been established.