Duration representation for use with the WallTime class. More...
#include <duration.h>
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 (int32_t _sec, int32_t _nsec) | |
WallDuration (double t) | |
WallDuration (const Rate &) | |
Public Member Functions inherited from ros::DurationBase< WallDuration > | |
DurationBase () | |
DurationBase (int32_t _sec, int32_t _nsec) | |
DurationBase (double t) | |
WallDuration & | fromNSec (int64_t t) |
WallDuration & | fromSec (double t) |
bool | isZero () const |
bool | operator!= (const WallDuration &rhs) const |
WallDuration | operator* (double scale) const |
WallDuration & | operator*= (double scale) |
WallDuration | operator+ (const WallDuration &rhs) const |
WallDuration & | operator+= (const WallDuration &rhs) |
WallDuration | operator- (const WallDuration &rhs) const |
WallDuration | operator- () const |
WallDuration & | operator-= (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 |
boost::posix_time::time_duration | toBoost () const |
int64_t | toNSec () const |
double | toSec () const |
~DurationBase () | |
Additional Inherited Members | |
Public Attributes inherited from ros::DurationBase< WallDuration > | |
int32_t | nsec |
int32_t | sec |
Duration representation for use with the WallTime class.
ros::DurationBase provides most of its functionality.
Definition at line 136 of file duration.h.
|
inline |
Definition at line 139 of file duration.h.
|
inline |
Definition at line 143 of file duration.h.
|
inlineexplicit |
Definition at line 147 of file duration.h.
|
explicit |
Definition at line 43 of file src/duration.cpp.
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.
Definition at line 468 of file src/time.cpp.