w11 - cpp 0.794
Backend server for Rlink and w11
|
FIXME_docs. More...
#include <Rtime.hpp>
Public Member Functions | |
Rtime () | |
Default constructor. | |
Rtime (clockid_t clkid) | |
FIXME_docs. | |
Rtime (double dt) | |
FIXME_docs. | |
void | GetClock (clockid_t clkid) |
FIXME_docs. | |
void | SetSec (time_t sec) |
FIXME_docs. | |
void | SetNSec (long nsec) |
FIXME_docs. | |
void | Set (const struct timespec &ts) |
FIXME_docs. | |
void | Set (double dt) |
FIXME_docs. | |
void | Clear () |
FIXME_docs. | |
bool | IsZero () const |
FIXME_docs. | |
bool | IsPositive () const |
FIXME_docs. | |
bool | IsNegative () const |
FIXME_docs. | |
time_t | Sec () const |
FIXME_docs. | |
long | NSec () const |
FIXME_docs. | |
const struct timespec & | Timespec () const |
FIXME_docs. | |
int | ToMSec () const |
FIXME_docs. | |
double | ToDouble () const |
FIXME_docs. | |
std::string | ToString () const |
FIXME_docs. | |
double | Age (clockid_t clkid) const |
FIXME_docs. | |
void | Print (std::ostream &os) const |
FIXME_docs. | |
void | Dump (std::ostream &os, int ind=0, const char *text=0) const |
FIXME_docs. | |
operator double () const | |
FIXME_docs. | |
Rtime & | operator+= (const Rtime &rhs) |
FIXME_docs. | |
Rtime & | operator-= (const Rtime &rhs) |
FIXME_docs. | |
bool | operator== (const Rtime &rhs) |
FIXME_docs. | |
bool | operator!= (const Rtime &rhs) |
FIXME_docs. | |
bool | operator< (const Rtime &rhs) |
FIXME_docs. | |
bool | operator<= (const Rtime &rhs) |
FIXME_docs. | |
bool | operator> (const Rtime &rhs) |
FIXME_docs. | |
bool | operator>= (const Rtime &rhs) |
FIXME_docs. | |
Protected Member Functions | |
void | Fixup () |
FIXME_docs. | |
Private Attributes | |
struct timespec | fTime |
time | |
Related Functions | |
(Note that these are not member functions.) | |
Rtime | operator+ (const Rtime &x, const Rtime &y) |
operator+: Rtime + Rtime. | |
Rtime | operator- (const Rtime &x, const Rtime &y) |
operator-: Rtime - Rtime. | |
std::ostream & | operator<< (std::ostream &os, const Rtime &obj) |
ostream insertion operator. | |
|
inlineexplicit |
|
inlineexplicit |
void Retro::Rtime::GetClock | ( | clockid_t | clkid | ) |
FIXME_docs.
Definition at line 41 of file Rtime.cpp.
References fTime.
Referenced by Retro::Rw11CntlDEUNA::ClearCtr(), Retro::RlinkPort::RawRead(), Retro::RlinkConnect::ReadResponse(), Rtime(), Retro::RethBuf::SetTime(), and Retro::RlinkConnect::WaitAttn().
|
inline |
void Retro::Rtime::SetNSec | ( | long | nsec | ) |
|
inline |
|
inline |
|
inline |
FIXME_docs.
Definition at line 76 of file Rtime.ipp.
References fTime.
Referenced by Retro::RlinkPort::RawRead(), Retro::RlinkConnect::WaitAttn(), and Retro::Rw11Cpu::WaitCpuActDown().
|
inline |
FIXME_docs.
Definition at line 85 of file Rtime.ipp.
References fTime.
Referenced by Age(), and Retro::RlinkPacketBufRcv::ReadData().
|
inline |
FIXME_docs.
Definition at line 93 of file Rtime.ipp.
References fTime.
Referenced by Retro::RlinkConnect::ProcessAttnNotify(), Retro::RlinkPort::RawRead(), Retro::RlinkPort::Read(), Retro::Rw11CntlDEUNA::SetRxPollTime(), Retro::RlinkConnect::SetTimeout(), Retro::RlinkConnect::WaitAttn(), Retro::Rw11Cpu::WaitCpuActDown(), and Retro::RlinkPort::Write().
|
inline |
FIXME_docs.
Definition at line 101 of file Rtime.ipp.
References fTime.
Referenced by Retro::RlinkPort::PollRead().
|
inline |
FIXME_docs.
Definition at line 109 of file Rtime.ipp.
References fTime.
Referenced by Retro::Rw11CntlDEUNA::ExecGetcmd(), and Retro::RtimerFd::SetRelative().
|
inline |
FIXME_docs.
Definition at line 117 of file Rtime.ipp.
References fTime.
Referenced by Retro::RtimerFd::SetRelative().
|
inline |
FIXME_docs.
Definition at line 125 of file Rtime.ipp.
References fTime.
Referenced by Retro::RtimerFd::SetRelative().
|
inline |
FIXME_docs.
Definition at line 133 of file Rtime.ipp.
References fTime.
Referenced by Retro::RlinkPort::PollRead().
|
inline |
FIXME_docs.
Definition at line 142 of file Rtime.ipp.
References fTime.
Referenced by Print(), and Retro::Rw11Cpu::WaitCpuActDown().
std::string Retro::Rtime::ToString | ( | ) | const |
double Retro::Rtime::Age | ( | clockid_t | clkid | ) | const |
FIXME_docs.
Definition at line 72 of file Rtime.cpp.
References IsZero().
Referenced by Retro::Rw11CntlDEUNA::Dump().
void Retro::Rtime::Print | ( | std::ostream & | os | ) | const |
FIXME_docs.
Definition at line 82 of file Rtime.cpp.
References fTime, Retro::RosPrintf(), and ToDouble().
Referenced by operator<<(), and ToString().
void Retro::Rtime::Dump | ( | std::ostream & | os, |
int | ind = 0 , |
||
const char * | text = 0 |
||
) | const |
FIXME_docs.
Definition at line 103 of file Rtime.cpp.
References fTime, Retro::RosPrintf(), and ToString().
|
inlineexplicit |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inlineprotected |
FIXME_docs.
Definition at line 233 of file Rtime.ipp.
References fTime.
Referenced by operator+=(), and operator-=().
|
related |
|
private |
time
Definition at line 69 of file Rtime.hpp.
Referenced by Clear(), Dump(), Fixup(), GetClock(), IsNegative(), IsPositive(), IsZero(), NSec(), operator+=(), operator-=(), operator<(), operator<=(), operator==(), Print(), Sec(), Set(), SetNSec(), SetSec(), Timespec(), ToDouble(), and ToMSec().