RTI Connext C++ API  Version 5.1.0
DDS_Duration_t Struct Reference

Type for duration representation. More...

Static Public Member Functions

static const DDS_Duration_t from_micros (DDS_UnsignedLong microseconds)
 
static const DDS_Duration_t from_millis (DDS_UnsignedLong milliseconds)
 
static const DDS_Duration_t from_nanos (DDS_UnsignedLong nanoseconds)
 
static const DDS_Duration_t from_seconds (DDS_Long seconds)
 

Public Attributes

DDS_Long sec
 seconds
 
DDS_UnsignedLong nanosec
 nanoseconds
 

Detailed Description

Type for duration representation.

Represents a time interval.

Examples:
HelloWorld_publisher.cxx.

Member Function Documentation

static const DDS_Duration_t DDS_Duration_t::from_micros ( DDS_UnsignedLong  microseconds)
static

Creates a DDS_Duration_t object from a duration in microseconds

static const DDS_Duration_t DDS_Duration_t::from_millis ( DDS_UnsignedLong  milliseconds)
static

Creates a DDS_Duration_t object from a duration in milliseconds

static const DDS_Duration_t DDS_Duration_t::from_nanos ( DDS_UnsignedLong  nanoseconds)
static

Creates a DDS_Duration_t object from a duration in nanoseconds

static const DDS_Duration_t DDS_Duration_t::from_seconds ( DDS_Long  seconds)
static

Creates a DDS_Duration_t object from a duration in seconds (and zero nanoseconds)

Member Data Documentation

DDS_Long DDS_Duration_t::sec

seconds

DDS_UnsignedLong DDS_Duration_t::nanosec

nanoseconds


RTI Connext C++ API Version 5.1.0 Copyright © Mon Feb 3 2014 Real-Time Innovations, Inc