Time representation. Always wall-clock time. More...
#include <time.h>
Public Member Functions | |
WallTime () | |
WallTime (uint32_t _sec, uint32_t _nsec) | |
WallTime (double t) | |
Static Public Member Functions | |
static bool | isSystemTime () |
static WallTime | now () |
Returns the current wall clock time. | |
static bool | sleepUntil (const WallTime &end) |
Sleep until a specific time has been reached. |
Time representation. Always wall-clock time.
ros::TimeBase provides most of its functionality.
ros::WallTime::WallTime | ( | ) | [inline] |
ros::WallTime::WallTime | ( | uint32_t | _sec, |
uint32_t | _nsec | ||
) | [inline] |
ros::WallTime::WallTime | ( | double | t | ) | [inline, explicit] |
static bool ros::WallTime::isSystemTime | ( | ) | [inline, static] |
WallTime ros::WallTime::now | ( | ) | [static] |
Returns the current wall clock time.
Definition at line 437 of file src/time.cpp.
bool ros::WallTime::sleepUntil | ( | const WallTime & | end | ) | [static] |
Sleep until a specific time has been reached.
Definition at line 381 of file src/time.cpp.