RTI Connext Micro C API Version 4.2.0
|
Time and duration types and defines. More...
Data Structures | |
struct | DDS_Time_t |
Type for time representation. More... | |
struct | DDS_Duration_t |
Type for duration representation. More... | |
Macros | |
#define | DDS_TIME_ZERO |
The default instant in time: zero seconds and zero nanoseconds. | |
Functions | |
DDS_Boolean | DDS_Time_greater_than (const struct DDS_Time_t *l, const struct DDS_Time_t *r) |
DDS_Boolean | DDS_Time_is_zero (const struct DDS_Time_t *time) |
Check if time is zero. | |
DDSCDllExport DDS_Boolean | DDS_Duration_is_infinite (const struct DDS_Duration_t *duration) |
DDSCDllExport int | DDS_Duration_compare (const struct DDS_Duration_t *left, const struct DDS_Duration_t *right) |
DDSCDllExport DDS_Boolean | DDS_Duration_equal (const struct DDS_Duration_t *self, const struct DDS_Duration_t *other) |
DDSCDllExport DDS_Boolean | DDS_Duration_is_zero (const struct DDS_Duration_t *duration) |
Variables | |
DDSCDllVariable const DDS_Long | DDS_TIME_INVALID_SEC |
A sentinel indicating an invalid second of time. | |
DDSCDllVariable const DDS_UnsignedLong | DDS_TIME_INVALID_NSEC |
A sentinel indicating an invalid nano-second of time. | |
DDSCDllVariable const struct DDS_Time_t | DDS_TIME_INVALID |
A sentinel indicating an invalid time. | |
DDSCDllVariable const DDS_Long | DDS_DURATION_INFINITE_SEC |
An infinite second period of time. | |
DDSCDllVariable const DDS_UnsignedLong | DDS_DURATION_INFINITE_NSEC |
An infinite nano-second period of time. | |
DDSCDllVariable const struct DDS_Duration_t | DDS_DURATION_INFINITE |
An infinite period of time. | |
DDSCDllVariable const DDS_Long | DDS_DURATION_ZERO_SEC |
A zero-length second period of time. | |
DDSCDllVariable const DDS_UnsignedLong | DDS_DURATION_ZERO_NSEC |
A zero-length nano-second period of time. | |
DDSCDllVariable const struct DDS_Duration_t | DDS_DURATION_ZERO |
A zero-length period of time. | |
Time and duration types and defines.
#define DDS_TIME_ZERO |
The default instant in time: zero seconds and zero nanoseconds.
DDS_Boolean DDS_Time_greater_than | ( | const struct DDS_Time_t * | l, |
const struct DDS_Time_t * | r ) |
DDS_Boolean DDS_Time_is_zero | ( | const struct DDS_Time_t * | time | ) |
Check if time is zero.
References DDS_TIME_INVALID, DDS_TIME_INVALID_NSEC, and DDS_TIME_INVALID_SEC.
DDSCDllExport DDS_Boolean DDS_Duration_is_infinite | ( | const struct DDS_Duration_t * | duration | ) |
DDSCDllExport int DDS_Duration_compare | ( | const struct DDS_Duration_t * | left, |
const struct DDS_Duration_t * | right ) |
left | <<in>> Duration to compare. Cannot be NULL. |
right | <<in>> Duration to compare. Cannot be NULL. |
References RTI_INT32, and RTI_UINT32.
DDSCDllExport DDS_Boolean DDS_Duration_equal | ( | const struct DDS_Duration_t * | self, |
const struct DDS_Duration_t * | other ) |
self | <<in>> Duration to compare. Cannot be NULL. |
other | <<in>> Duration to be compared to this one. Cannot be NULL. |
References DDS_DURATION_ZERO, DDS_DURATION_ZERO_NSEC, and DDS_DURATION_ZERO_SEC.
DDSCDllExport DDS_Boolean DDS_Duration_is_zero | ( | const struct DDS_Duration_t * | duration | ) |
|
extern |
A sentinel indicating an invalid second of time.
Referenced by DDS_Time_is_zero().
|
extern |
A sentinel indicating an invalid nano-second of time.
Referenced by DDS_Time_is_zero().
|
extern |
A sentinel indicating an invalid time.
Referenced by DDS_Time_is_zero().
|
extern |
An infinite second period of time.
|
extern |
An infinite nano-second period of time.
|
extern |
An infinite period of time.
|
extern |
A zero-length second period of time.
Referenced by DDS_Duration_equal().
|
extern |
A zero-length nano-second period of time.
Referenced by DDS_Duration_equal().
|
extern |
A zero-length period of time.
Referenced by DDS_Duration_equal().