Time representation. Always steady-clock time. More...
#include <time.h>

Public Member Functions | |
| SteadyTime () | |
| SteadyTime (uint32_t _sec, uint32_t _nsec) | |
| SteadyTime (double t) | |
Public Member Functions inherited from ros::TimeBase< SteadyTime, WallDuration > | |
| SteadyTime & | fromNSec (uint64_t t) |
| SteadyTime & | fromSec (double t) |
| bool | is_zero () const |
| bool | isZero () const |
| bool | operator!= (const SteadyTime &rhs) const |
| SteadyTime | operator+ (const WallDuration &rhs) const |
| SteadyTime & | operator+= (const WallDuration &rhs) |
| WallDuration | operator- (const SteadyTime &rhs) const |
| SteadyTime | operator- (const WallDuration &rhs) const |
| SteadyTime & | operator-= (const WallDuration &rhs) |
| bool | operator< (const SteadyTime &rhs) const |
| bool | operator<= (const SteadyTime &rhs) const |
| bool | operator== (const SteadyTime &rhs) const |
| bool | operator> (const SteadyTime &rhs) const |
| bool | operator>= (const SteadyTime &rhs) const |
| TimeBase () | |
| TimeBase (uint32_t _sec, uint32_t _nsec) | |
| TimeBase (double t) | |
| boost::posix_time::ptime | toBoost () const |
| uint64_t | toNSec () const |
| double | toSec () const |
Static Public Member Functions | |
| static bool | isSystemTime () |
| static SteadyTime | now () |
| Returns the current steady (monotonic) clock time. More... | |
| static bool | sleepUntil (const SteadyTime &end) |
| Sleep until a specific time has been reached. More... | |
Additional Inherited Members | |
Public Attributes inherited from ros::TimeBase< SteadyTime, WallDuration > | |
| uint32_t | nsec |
| uint32_t | sec |
Time representation. Always steady-clock time.
Not affected by ROS time.
ros::TimeBase provides most of its functionality.
|
inline |
|
static |
Returns the current steady (monotonic) clock time.
Definition at line 446 of file src/time.cpp.
|
static |
Sleep until a specific time has been reached.
Definition at line 373 of file src/time.cpp.