CoreDX DDS Modern C++ API
|
Holds a point in time. More...
Public Member Functions | |
Time () | |
Construct a Time instance initialized to zero. | |
Time (int64_t sec, uint32_t nanosec=0) | |
Construct a Time instance initialized the provided seconds + nanoseconds. | |
int64_t | sec () const |
Access the integral seconds stored in this Time. | |
void | sec (int64_t s) |
Set the integral seconds stored in this Time. | |
uint32_t | nanosec () const |
Access the integral nano seconds stored in this Time. | |
void | nanosec (uint32_t ns) |
Set the integral nano seconds stored in this Time. | |
int | compare (const Time &that) const |
Compare this Time instance to the provided Time instance. More... | |
bool | operator> (const Time &that) const |
Compare this Time instance to the provided Time instance. More... | |
bool | operator>= (const Time &that) const |
Compare this Time instance to the provided Time instance. More... | |
bool | operator== (const Time &that) const |
Compare this Time instance to the provided Time instance. More... | |
bool | operator!= (const Time &that) const |
Compare this Time instance to the provided Time instance. More... | |
bool | operator<= (const Time &that) const |
Compare this Time instance to the provided Time instance. More... | |
bool | operator< (const Time &that) const |
Compare this Time instance to the provided Time instance. More... | |
Time & | operator+= (const Duration &a_ti) |
Adds the provided Duration to this time. | |
Time & | operator-= (const Duration &a_ti) |
Subtracts the provided Duration from this time. | |
int64_t | to_millisecs () const |
Convert this Time to milliseconds. | |
int64_t | to_microsecs () const |
Convert this Time to microseconds. | |
double | to_secs () const |
Convert this Time to seconds. | |
Static Public Member Functions | |
static const Time | invalid () |
Construct a time instance that indicates an 'invalid' time. More... | |
static const Time | from_microsecs (int64_t microseconds) |
Construct a Time instance from the provided microseconds value. | |
static const Time | from_millisecs (int64_t milliseconds) |
Construct a Time instance from the provided milliseconds value. | |
static const Time | from_secs (double seconds) |
Construct a Time instance from the provided seconds value. | |
Related Functions | |
(Note that these are not member functions.) | |
const dds::core::Time | operator+ (const dds::core::Time &lhs, const dds::core::Duration &rhs) |
const dds::core::Time | operator+ (const dds::core::Duration &lhs, const dds::core::Time &rhs) |
const dds::core::Time | operator- (const dds::core::Time &lhs, const dds::core::Duration &rhs) |
Holds a point in time.
int dds::core::Time::compare | ( | const Time & | that | ) | const |
|
static |
Construct a time instance that indicates an 'invalid' time.
bool dds::core::Time::operator!= | ( | const Time & | that | ) | const |
bool dds::core::Time::operator< | ( | const Time & | that | ) | const |
bool dds::core::Time::operator<= | ( | const Time & | that | ) | const |
bool dds::core::Time::operator== | ( | const Time & | that | ) | const |
bool dds::core::Time::operator> | ( | const Time & | that | ) | const |
bool dds::core::Time::operator>= | ( | const Time & | that | ) | const |
|
related |
|
related |
|
related |