Time representation. Always wall-clock time. More...
#include <time.h>
Public Member Functions | |
WallTime () | |
WallTime (double t) | |
WallTime (uint32_t _sec, uint32_t _nsec) | |
Public Member Functions inherited from ros::TimeBase< WallTime, WallDuration > | |
WallTime & | fromNSec (uint64_t t) |
WallTime & | fromSec (double t) |
bool | is_zero () const |
bool | isZero () const |
const Time | MAX |
const WallTime | MAX |
const SteadyTime | MAX |
const Time | MAX |
const WallTime | MAX |
const SteadyTime | MAX |
const Time | MIN |
const WallTime | MIN |
const SteadyTime | MIN |
const Time | MIN |
const WallTime | MIN |
const SteadyTime | MIN |
bool | operator!= (const WallTime &rhs) const |
WallTime | operator+ (const WallDuration &rhs) const |
WallTime & | operator+= (const WallDuration &rhs) |
WallTime | operator- (const WallDuration &rhs) const |
WallDuration | operator- (const WallTime &rhs) const |
WallTime & | operator-= (const WallDuration &rhs) |
bool | operator< (const WallTime &rhs) const |
bool | operator<= (const WallTime &rhs) const |
bool | operator== (const WallTime &rhs) const |
bool | operator> (const WallTime &rhs) const |
bool | operator>= (const WallTime &rhs) const |
TimeBase () | |
TimeBase (double t) | |
TimeBase (uint32_t _sec, uint32_t _nsec) | |
boost::posix_time::ptime | toBoost () const |
uint64_t | toNSec () const |
double | toSec () const |
const Time | UNINITIALIZED |
const WallTime | UNINITIALIZED |
const SteadyTime | UNINITIALIZED |
const Time | UNINITIALIZED |
const WallTime | UNINITIALIZED |
const SteadyTime | UNINITIALIZED |
const Time | ZERO |
const WallTime | ZERO |
const SteadyTime | ZERO |
const Time | ZERO |
const WallTime | ZERO |
const SteadyTime | ZERO |
Static Public Member Functions | |
static bool | isSystemTime () |
static WallTime | now () |
Returns the current wall clock time. More... | |
static bool | sleepUntil (const WallTime &end) |
Sleep until a specific time has been reached. More... | |
Additional Inherited Members | |
Public Attributes inherited from ros::TimeBase< WallTime, WallDuration > | |
uint32_t | nsec |
uint32_t | sec |
Static Public Attributes inherited from ros::TimeBase< WallTime, WallDuration > | |
static const WallTime | MAX |
Maximum representable time. More... | |
static const WallTime | MIN |
Minimum representable time. More... | |
static const WallTime | UNINITIALIZED |
Uninitialized time. More... | |
static const WallTime | ZERO |
Zero (invalid) time. More... | |
Time representation. Always wall-clock time.
ros::TimeBase provides most of its functionality.
|
inline |
|
static |
Returns the current wall clock time.
Definition at line 479 of file src/time.cpp.
|
static |
Sleep until a specific time has been reached.
Definition at line 401 of file src/time.cpp.