RTI Connext .NET API (legacy)  Version 6.1.2

Type for duration representation. More...

#include <managed_infrastructure.h>

Public Member Functions

System::Boolean is_infinite ()
 
System::Boolean is_zero ()
 
System::Boolean is_auto ()
 

Static Public Member Functions

static Duration_t from_micros (System::UInt64 microseconds)
 Creates a new duration object from a duration expressed in microseconds. More...
 
static Duration_t from_nanos (System::UInt64 nanoseconds)
 Creates a new duration object from a duration expressed in nanoseconds. More...
 
static Duration_t from_millis (System::UInt64 milliseconds)
 Creates a new duration object from a duration expressed in milliseconds. More...
 
static Duration_t from_seconds (System::UInt32 seconds)
 Creates a new duration object from a duration expressed in seconds. More...
 

Public Attributes

System::Int32 sec
 seconds More...
 
System::UInt32 nanosec
 nanoseconds More...
 

Properties

static System::Int32 DURATION_ZERO_SEC [get]
 A zero-length second period of time. More...
 
static System::UInt32 DURATION_ZERO_NSEC [get]
 A zero-length nano-second period of time. More...
 
static System::Int32 DURATION_INFINITE_SEC [get]
 An infinite second period of time. More...
 
static System::UInt32 DURATION_INFINITE_NSEC [get]
 An infinite nano-second period of time. More...
 
static Duration_t DURATION_INFINITE [get]
 An infinite period of time. More...
 
static Duration_t DURATION_ZERO [get]
 A zero-length period of time. More...
 
static System::Int32 DURATION_AUTO_SEC [get]
 An auto second period of time. More...
 
static System::UInt32 DURATION_AUTO_NSEC [get]
 An auto nano-second period of time. More...
 
static Duration_t DURATION_AUTO [get]
 Duration is automatically assigned. More...
 

Detailed Description

Type for duration representation.

Represents a time interval.

Member Data Documentation

◆ sec

System::Int32 DDS::Duration_t::sec

◆ nanosec

System::UInt32 DDS::Duration_t::nanosec

nanoseconds

[range] [0,1000000000)

Referenced by from_micros(), from_millis(), from_nanos(), from_seconds(), and is_auto().