Public Member Functions | Static Public Member Functions | List of all members
ros::SteadyTime Class Reference

Time representation. Always steady-clock time. More...

#include <time.h>

Inheritance diagram for ros::SteadyTime:
Inheritance graph

Public Member Functions

 SteadyTime ()
 SteadyTime (uint32_t _sec, uint32_t _nsec)
 SteadyTime (double t)
- Public Member Functions inherited from ros::TimeBase< SteadyTime, WallDuration >
SteadyTimefromNSec (uint64_t t)
SteadyTimefromSec (double t)
bool is_zero () const
bool isZero () const
bool operator!= (const SteadyTime &rhs) const
SteadyTime operator+ (const WallDuration &rhs) const
SteadyTimeoperator+= (const WallDuration &rhs)
WallDuration operator- (const SteadyTime &rhs) const
SteadyTime operator- (const WallDuration &rhs) const
SteadyTimeoperator-= (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
 ~TimeBase ()

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

Detailed Description

Time representation. Always steady-clock time.

Not affected by ROS time.

ros::TimeBase provides most of its functionality.

Definition at line 271 of file time.h.

Constructor & Destructor Documentation

ros::SteadyTime::SteadyTime ( )

Definition at line 274 of file time.h.

ros::SteadyTime::SteadyTime ( uint32_t  _sec,
uint32_t  _nsec 

Definition at line 278 of file time.h.

ros::SteadyTime::SteadyTime ( double  t)

Definition at line 282 of file time.h.

Member Function Documentation

static bool ros::SteadyTime::isSystemTime ( )

Definition at line 295 of file time.h.

SteadyTime ros::SteadyTime::now ( )

Returns the current steady (monotonic) clock time.

Definition at line 523 of file src/time.cpp.

bool ros::SteadyTime::sleepUntil ( const SteadyTime end)

Sleep until a specific time has been reached.

True if the desired sleep time was met, false otherwise.

Definition at line 450 of file src/time.cpp.

The documentation for this class was generated from the following files:

Author(s): Josh Faust
autogenerated on Tue Apr 3 2018 02:26:56