RTI Connext Traditional C++ API Version 7.2.0

Type for duration representation. More...

Static Public Member Functions

static DDS_Duration_t from_micros (DDS_UnsignedLongLong microseconds)
 Creates a new duration object from a duration expressed in microseconds. More...
 
static DDS_Duration_t from_millis (DDS_UnsignedLongLong milliseconds)
 Creates a new duration object from a duration expressed in milliseconds. More...
 
static DDS_Duration_t from_nanos (DDS_UnsignedLongLong nanoseconds)
 Creates a new duration object from a duration expressed in nanoseconds. More...
 
static DDS_Duration_t from_seconds (DDS_UnsignedLong seconds)
 Creates a new duration object from a duration expressed in seconds. More...
 

Public Attributes

DDS_Long sec
 seconds More...
 
DDS_UnsignedLong nanosec
 nanoseconds More...
 

Detailed Description

Type for duration representation.

Represents a time interval.

Examples
HelloWorld_publisher.cxx, and HelloWorld_subscriber.cxx.

Member Data Documentation

◆ sec

DDS_Long DDS_Duration_t::sec

seconds

◆ nanosec

DDS_UnsignedLong DDS_Duration_t::nanosec

nanoseconds

[range] [0,1000000000)