Public Member Functions | Static Public Member Functions | List of all members
roswrap::WallTime Class Reference

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

#include <time.h>

Inheritance diagram for roswrap::WallTime:
Inheritance graph
[legend]

Public Member Functions

 WallTime ()
 
 WallTime (double t)
 
 WallTime (uint32_t _sec, uint32_t _nsec)
 
- Public Member Functions inherited from roswrap::TimeBase< WallTime, WallDuration >
WallTimefromNSec (uint64_t t)
 
WallTimefromSec (double t)
 
bool is_zero () const
 
bool isZero () const
 
bool operator!= (const WallTime &rhs) const
 
WallTime operator+ (const WallDuration &rhs) const
 
WallTimeoperator+= (const WallDuration &rhs)
 
WallTime operator- (const WallDuration &rhs) const
 
WallDuration operator- (const WallTime &rhs) const
 
WallTimeoperator-= (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)
 
uint64_t toNSec () const
 
double toSec () const
 
 ~TimeBase ()
 

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 roswrap::TimeBase< WallTime, WallDuration >
uint32_t nsec
 
uint32_t sec
 

Detailed Description

Time representation. Always wall-clock time.

ros::TimeBase provides most of its functionality.

Definition at line 233 of file time.h.

Constructor & Destructor Documentation

◆ WallTime() [1/3]

roswrap::WallTime::WallTime ( )
inline

Definition at line 236 of file time.h.

◆ WallTime() [2/3]

roswrap::WallTime::WallTime ( uint32_t  _sec,
uint32_t  _nsec 
)
inline

Definition at line 240 of file time.h.

◆ WallTime() [3/3]

roswrap::WallTime::WallTime ( double  t)
inlineexplicit

Definition at line 244 of file time.h.

Member Function Documentation

◆ isSystemTime()

static bool roswrap::WallTime::isSystemTime ( )
inlinestatic

Definition at line 257 of file time.h.

◆ now()

WallTime roswrap::WallTime::now ( )
static

Returns the current wall clock time.

Definition at line 534 of file time_modi.cpp.

◆ sleepUntil()

bool roswrap::WallTime::sleepUntil ( const WallTime end)
static

Sleep until a specific time has been reached.

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

Definition at line 447 of file time_modi.cpp.


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


sick_scan_xd
Author(s): Michael Lehning , Jochen Sprickerhof , Martin Günther
autogenerated on Fri Oct 25 2024 02:47:15