66 double nsec = floor(1.e9*dt);
67 double sec = floor(dt);
68 fTime.tv_sec = time_t(sec);
69 fTime.tv_nsec = long(nsec - 1.e9*sec);
103 return fTime.tv_sec < 0;
119 return fTime.tv_nsec;
136 return 1000*
fTime.tv_sec + (
fTime.tv_nsec+999999)/1000000;
144 return double(
fTime.tv_sec) + 1.e-9*double(
fTime.tv_nsec);
150inline Rtime::operator double()
const
235 if (
fTime.tv_nsec >= 1000000000) {
236 fTime.tv_nsec -= 1000000000;
238 }
else if (
fTime.tv_nsec < 0) {
239 fTime.tv_nsec += 1000000000;
bool IsZero() const
FIXME_docs.
bool IsNegative() const
FIXME_docs.
Rtime operator-(const Rtime &x, const Rtime &y)
operator-: Rtime - Rtime.
bool operator!=(const Rtime &rhs)
FIXME_docs.
const struct timespec & Timespec() const
FIXME_docs.
int ToMSec() const
FIXME_docs.
void Print(std::ostream &os) const
FIXME_docs.
time_t Sec() const
FIXME_docs.
void Set(const struct timespec &ts)
FIXME_docs.
bool IsPositive() const
FIXME_docs.
Rtime & operator+=(const Rtime &rhs)
FIXME_docs.
void SetSec(time_t sec)
FIXME_docs.
bool operator<=(const Rtime &rhs)
FIXME_docs.
struct timespec fTime
time
bool operator>(const Rtime &rhs)
FIXME_docs.
void GetClock(clockid_t clkid)
FIXME_docs.
bool operator>=(const Rtime &rhs)
FIXME_docs.
Rtime & operator-=(const Rtime &rhs)
FIXME_docs.
Rtime()
Default constructor.
bool operator<(const Rtime &rhs)
FIXME_docs.
Rtime operator+(const Rtime &x, const Rtime &y)
operator+: Rtime + Rtime.
double ToDouble() const
FIXME_docs.
std::ostream & operator<<(std::ostream &os, const Rtime &obj)
ostream insertion operator.
bool operator==(const Rtime &rhs)
FIXME_docs.
long NSec() const
FIXME_docs.
Declaration of class ReventLoop.