Duration representation for use with the Time class. More...
#include <duration.h>
Additional Inherited Members | |
Public Attributes inherited from ros::DurationBase< Duration > | |
int32_t | nsec |
int32_t | sec |
Static Public Attributes inherited from ros::DurationBase< Duration > | |
static const Duration | DAY |
One day duration. More... | |
static const Duration | HOUR |
One hour duration. More... | |
static const Duration | MAX |
Maximum representable duration. More... | |
static const Duration | MICROSECOND |
One microsecond duration. More... | |
static const Duration | MILLISECOND |
One millisecond duration. More... | |
static const Duration | MIN |
Minimum representable duration (negative) More... | |
static const Duration | MINUTE |
One minute duration. More... | |
static const Duration | NANOSECOND |
One nanosecond duration. More... | |
static const Duration | SECOND |
One second duration. More... | |
static const Duration | ZERO |
Zero duration. More... | |
Duration representation for use with the Time class.
ros::DurationBase provides most of its functionality.
Definition at line 117 of file duration.h.
|
inline |
Definition at line 120 of file duration.h.
|
inline |
Definition at line 124 of file duration.h.
|
inlineexplicit |
Definition at line 128 of file duration.h.
|
explicit |
Definition at line 71 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 423 of file src/time.cpp.