Time representation. May either represent wall clock time or ROS clock time.
More...
#include <time.h>
Time representation. May either represent wall clock time or ROS clock time.
rs2rosinternal::TimeBase provides most of its functionality.
Definition at line 177 of file time.h.
rs2rosinternal::Time::Time |
( |
| ) |
|
|
inline |
rs2rosinternal::Time::Time |
( |
double |
t | ) |
|
|
inlineexplicit |
void rs2rosinternal::Time::init |
( |
| ) |
|
|
static |
bool rs2rosinternal::Time::isSimTime |
( |
| ) |
|
|
static |
bool rs2rosinternal::Time::isSystemTime |
( |
| ) |
|
|
static |
bool rs2rosinternal::Time::isValid |
( |
| ) |
|
|
static |
Returns whether or not the current time is valid. Time is valid if it is non-zero.
Definition at line 284 of file time.cpp.
Time rs2rosinternal::Time::now |
( |
| ) |
|
|
static |
Retrieve the current time. If ROS clock time is in use, this returns the time according to the ROS clock. Otherwise returns the current wall clock time.
Definition at line 244 of file time.cpp.
void rs2rosinternal::Time::setNow |
( |
const Time & |
new_now | ) |
|
|
static |
void rs2rosinternal::Time::shutdown |
( |
| ) |
|
|
static |
bool rs2rosinternal::Time::sleepUntil |
( |
const Time & |
end | ) |
|
|
static |
Sleep until a specific time has been reached.
- Returns
- True if the desired sleep time was met, false otherwise.
Definition at line 354 of file time.cpp.
bool rs2rosinternal::Time::useSystemTime |
( |
| ) |
|
|
static |
bool rs2rosinternal::Time::waitForValid |
( |
| ) |
|
|
static |
Wait for time to become valid.
Definition at line 289 of file time.cpp.
Wait for time to become valid, with timeout.
Definition at line 294 of file time.cpp.
The documentation for this class was generated from the following files: