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. |
Duration representation for use with the Time class.
ros::DurationBase provides most of its functionality.
Definition at line 108 of file duration.h.
ros::Duration::Duration | ( | ) | [inline] |
Definition at line 111 of file duration.h.
ros::Duration::Duration | ( | int32_t | _sec, |
int32_t | _nsec | ||
) | [inline] |
Definition at line 115 of file duration.h.
ros::Duration::Duration | ( | double | t | ) | [inline, explicit] |
Definition at line 119 of file duration.h.
ros::Duration::Duration | ( | const Rate & | rate | ) | [explicit] |
Definition at line 39 of file 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 392 of file src/time.cpp.