![]() |
OpenSplice ISO C++ 2 DCPS
v6.x
ISO C++ 2 OpenSplice Data Distribution Service Data-Centric Publish-Subscribe API
|
#include "Time.hpp"
Public Member Functions | |
| Time () | |
| Time (int64_t sec, uint32_t nanosec=0) | |
| int | compare (const Time &that) const |
| uint32_t | nanosec () const |
| void | nanosec (uint32_t ns) |
| bool | operator!= (const Time &that) const |
| Time & | operator+= (const Duration &a_ti) |
| Time & | operator-= (const Duration &a_ti) |
| bool | operator< (const Time &that) const |
| bool | operator<= (const Time &that) const |
| bool | operator== (const Time &that) const |
| bool | operator> (const Time &that) const |
| bool | operator>= (const Time &that) const |
| int64_t | sec () const |
| void | sec (int64_t s) |
| int64_t | to_microsecs () const |
| int64_t | to_millisecs () const |
| double | to_secs () const |
Static Public Member Functions | |
| static const Time | from_microsecs (int64_t microseconds) |
| static const Time | from_millisecs (int64_t milliseconds) |
| static const Time | from_secs (double seconds) |
| static const Time | invalid () |
Time represents a time value and can:
| dds::core::Time::Time | ( | ) |
Create a Time of zero seconds.
|
explicit |
Create a Time elapsing a specific amount of time.
| int dds::core::Time::compare | ( | const Time & | that | ) | const |
|
static |
Create a Time from a number of microseconds
| microseconds | number of microseconds |
|
static |
Create a Time from a number of milliseconds
| milliseconds | number of miliseconds |
|
static |
Create a Time from a number of seconds
| seconds | number of seconds |
|
static |
| uint32_t dds::core::Time::nanosec | ( | ) | const |
| void dds::core::Time::nanosec | ( | uint32_t | ns | ) |
Set number of nanoseconds
| ns | number of nanoseconds |
| 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 |
| int64_t dds::core::Time::sec | ( | ) | const |
| void dds::core::Time::sec | ( | int64_t | s | ) |
Set number of seconds
| s | number of seconds |
| int64_t dds::core::Time::to_microsecs | ( | ) | const |
| int64_t dds::core::Time::to_millisecs | ( | ) | const |