Duration representation for use with the Time class. More...
#include <duration.h>
Public Member Functions | |
Duration () | |
Duration (int32_t _sec, int32_t _nsec) | |
Duration (double t) | |
Duration (const Rate &) | |
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... | |
Public Member Functions inherited from ros::DurationBase< Duration > | |
DurationBase () | |
DurationBase (int32_t _sec, int32_t _nsec) | |
DurationBase (double t) | |
Duration & | fromNSec (int64_t t) |
Duration & | fromSec (double t) |
bool | isZero () const |
bool | operator!= (const Duration &rhs) const |
Duration | operator* (double scale) const |
Duration & | operator*= (double scale) |
Duration | operator+ (const Duration &rhs) const |
Duration & | operator+= (const Duration &rhs) |
Duration | operator- (const Duration &rhs) const |
Duration | operator- () const |
Duration & | operator-= (const Duration &rhs) |
bool | operator< (const Duration &rhs) const |
bool | operator<= (const Duration &rhs) const |
bool | operator== (const Duration &rhs) const |
bool | operator> (const Duration &rhs) const |
bool | operator>= (const Duration &rhs) const |
boost::posix_time::time_duration | toBoost () const |
int64_t | toNSec () const |
double | toSec () const |
~DurationBase () | |
Additional Inherited Members | |
Public Attributes inherited from ros::DurationBase< Duration > | |
int32_t | nsec |
int32_t | sec |
Duration representation for use with the Time class.
ros::DurationBase provides most of its functionality.
Definition at line 108 of file duration.h.
|
inline |
Definition at line 111 of file duration.h.
|
inline |
Definition at line 115 of file duration.h.
|
inlineexplicit |
Definition at line 119 of file duration.h.
|
explicit |
Definition at line 39 of file src/duration.cpp.
bool ros::Duration::sleep | ( | ) | const |
sleep for the amount of time specified by this Duration. If a signal interrupts the sleep, resleeps for the time remaining.
Definition at line 447 of file src/time.cpp.