#include <Fw/Time/TimeInterval.hpp>
◆ anonymous enum
◆ Comparison
The type of a comparison result.
| Enumerator |
|---|
| LT | |
| EQ | |
| GT | |
| INCOMPARABLE | |
Definition at line 47 of file TimeInterval.hpp.
◆ TimeInterval() [1/4]
| Fw::TimeInterval::TimeInterval |
( |
| ) |
|
|
default |
◆ ~TimeInterval()
| Fw::TimeInterval::~TimeInterval |
( |
| ) |
|
|
default |
◆ TimeInterval() [2/4]
◆ TimeInterval() [3/4]
| TimeInterval::TimeInterval |
( |
U32 |
seconds, |
|
|
U32 |
useconds |
|
) |
| |
◆ TimeInterval() [4/4]
| TimeInterval::TimeInterval |
( |
const Time & |
start, |
|
|
const Time & |
end |
|
) |
| |
◆ add() [1/2]
| void TimeInterval::add |
( |
U32 |
seconds, |
|
|
U32 |
mseconds |
|
) |
| |
◆ add() [2/2]
Add two time intervals Adds the seconds and microseconds fields of two time intervals together
- Returns
- TimeInterval result
- Parameters
-
Definition at line 93 of file TimeInterval.cpp.
◆ compare()
Compare two time intervals A time interval is considered greater than another if it spans a longer duration The comparison is done on the seconds first, then the microseconds if the seconds are equal
- Returns
- TimeInterval result
- Parameters
-
Definition at line 74 of file TimeInterval.cpp.
◆ deserializeFrom()
Deserialize the contents of this object from a buffer.
This method reads serialized data from the provided buffer and reconstructs the object's data from it. The buffer should contain data in the format produced by serializeTo().
- Parameters
-
- Returns
- SerializeStatus indicating the result of the operation
Implements Fw::Serializable.
Definition at line 61 of file TimeInterval.cpp.
◆ getSeconds()
| U32 TimeInterval::getSeconds |
( |
| ) |
const |
◆ getUSeconds()
| U32 TimeInterval::getUSeconds |
( |
| ) |
const |
◆ operator!=()
| bool TimeInterval::operator!= |
( |
const TimeInterval & |
other | ) |
const |
◆ operator<()
| bool TimeInterval::operator< |
( |
const TimeInterval & |
other | ) |
const |
◆ operator<=()
| bool TimeInterval::operator<= |
( |
const TimeInterval & |
other | ) |
const |
◆ operator=()
◆ operator==()
| bool TimeInterval::operator== |
( |
const TimeInterval & |
other | ) |
const |
◆ operator>()
| bool TimeInterval::operator> |
( |
const TimeInterval & |
other | ) |
const |
◆ operator>=()
| bool TimeInterval::operator>= |
( |
const TimeInterval & |
other | ) |
const |
◆ serializeTo()
Serialize the contents of this object to a buffer.
This method serializes the object's data into the provided buffer. The serialization process converts the object's data into a format that can be stored or transmitted, and then writes it to the buffer.
- Parameters
-
- Returns
- SerializeStatus indicating the result of the operation
Implements Fw::Serializable.
Definition at line 56 of file TimeInterval.cpp.
◆ set()
| void TimeInterval::set |
( |
U32 |
seconds, |
|
|
U32 |
useconds |
|
) |
| |
◆ sub()
Subtract two time intervals This computes the absolute value of the difference between two time intervals For example if t1=(0s, 5us) and t2=(0s, 3us), the result is (0s, 2us). This operation is commutative, i.e. the result is the same regardless of the order of the arguments.
- Returns
- TimeInterval result
- Parameters
-
Definition at line 105 of file TimeInterval.cpp.
The documentation for this class was generated from the following files: