Public Member Functions | List of all members
ros::WallDuration Class Reference

Duration representation for use with the WallTime class. More...

#include <duration.h>

Inheritance diagram for ros::WallDuration:
Inheritance graph
[legend]

Public Member Functions

bool sleep () const
 sleep for the amount of time specified by this Duration. If a signal interrupts the sleep, resleeps for the time remaining. More...
 
 WallDuration ()
 
 WallDuration (const Rate &)
 
 WallDuration (double t)
 
 WallDuration (int32_t _sec, int32_t _nsec)
 
- Public Member Functions inherited from ros::DurationBase< WallDuration >
const Duration DAY
 
const WallDuration DAY
 
const Duration DAY
 
const WallDuration DAY
 
 DurationBase ()
 
 DurationBase (double t)
 
 DurationBase (int32_t _sec, int32_t _nsec)
 
WallDurationfromNSec (int64_t t)
 
WallDurationfromSec (double t)
 
const Duration HOUR
 
const WallDuration HOUR
 
const Duration HOUR
 
const WallDuration HOUR
 
bool isZero () const
 
const Duration MAX
 
const WallDuration MAX
 
const Duration MAX
 
const WallDuration MAX
 
const Duration MICROSECOND
 
const WallDuration MICROSECOND
 
const Duration MICROSECOND
 
const WallDuration MICROSECOND
 
const Duration MILLISECOND
 
const WallDuration MILLISECOND
 
const Duration MILLISECOND
 
const WallDuration MILLISECOND
 
const Duration MIN
 
const WallDuration MIN
 
const Duration MIN
 
const WallDuration MIN
 
const Duration MINUTE
 
const WallDuration MINUTE
 
const Duration MINUTE
 
const WallDuration MINUTE
 
const Duration NANOSECOND
 
const WallDuration NANOSECOND
 
const Duration NANOSECOND
 
const WallDuration NANOSECOND
 
bool operator!= (const WallDuration &rhs) const
 
WallDuration operator* (double scale) const
 
WallDurationoperator*= (double scale)
 
WallDuration operator+ (const WallDuration &rhs) const
 
WallDurationoperator+= (const WallDuration &rhs)
 
WallDuration operator- () const
 
WallDuration operator- (const WallDuration &rhs) const
 
WallDurationoperator-= (const WallDuration &rhs)
 
bool operator< (const WallDuration &rhs) const
 
bool operator<= (const WallDuration &rhs) const
 
bool operator== (const WallDuration &rhs) const
 
bool operator> (const WallDuration &rhs) const
 
bool operator>= (const WallDuration &rhs) const
 
const Duration SECOND
 
const WallDuration SECOND
 
const Duration SECOND
 
const WallDuration SECOND
 
boost::posix_time::time_duration toBoost () const
 
int64_t toNSec () const
 
double toSec () const
 
const Duration ZERO
 
const WallDuration ZERO
 
const Duration ZERO
 
const WallDuration ZERO
 

Additional Inherited Members

- Public Attributes inherited from ros::DurationBase< WallDuration >
int32_t nsec
 
int32_t sec
 
- Static Public Attributes inherited from ros::DurationBase< WallDuration >
static const WallDuration DAY
 One day duration. More...
 
static const WallDuration HOUR
 One hour duration. More...
 
static const WallDuration MAX
 Maximum representable duration. More...
 
static const WallDuration MICROSECOND
 One microsecond duration. More...
 
static const WallDuration MILLISECOND
 One millisecond duration. More...
 
static const WallDuration MIN
 Minimum representable duration (negative) More...
 
static const WallDuration MINUTE
 One minute duration. More...
 
static const WallDuration NANOSECOND
 One nanosecond duration. More...
 
static const WallDuration SECOND
 One second duration. More...
 
static const WallDuration ZERO
 Zero duration. More...
 

Detailed Description

Duration representation for use with the WallTime class.

ros::DurationBase provides most of its functionality.

Definition at line 155 of file duration.h.

Constructor & Destructor Documentation

◆ WallDuration() [1/4]

ros::WallDuration::WallDuration ( )
inline

Definition at line 158 of file duration.h.

◆ WallDuration() [2/4]

ros::WallDuration::WallDuration ( int32_t  _sec,
int32_t  _nsec 
)
inline

Definition at line 162 of file duration.h.

◆ WallDuration() [3/4]

ros::WallDuration::WallDuration ( double  t)
inlineexplicit

Definition at line 166 of file duration.h.

◆ WallDuration() [4/4]

ros::WallDuration::WallDuration ( const Rate rate)
explicit

Definition at line 75 of file src/duration.cpp.

Member Function Documentation

◆ sleep()

bool ros::WallDuration::sleep ( ) const

sleep for the amount of time specified by this Duration. If a signal interrupts the sleep, resleeps for the time remaining.

Returns
True if the desired sleep duration was met, false otherwise.

Definition at line 509 of file src/time.cpp.


The documentation for this class was generated from the following files:


rostime
Author(s): Josh Faust, Dirk Thomas
autogenerated on Sat Jun 17 2023 02:32:37