19 #include <coil/TimeValue.h> 55 m_sec = (
long int)timeval;
113 if (res.
m_usec >= 1000000)
154 TimeValue::operator double()
const 168 if (
m_sec > 0)
return 1;
169 if (
m_sec < 0)
return -1;
171 if (
m_usec < 0)
return -1;
208 else if (m_sec < 0 && m_usec > 0)
TimeValue operator+(TimeValue &tm)
Time addition.
int sign() const
Sign judgment.
#define TIMEVALUE_ONE_SECOND_IN_USECS
void normalize()
Normalize.
TimeValue(long sec=0, long usec=0)
Constructor.
long int sec() const
Get value of second time scale.
TimeValue operator=(double time)
Convert double type into time type.
long int usec() const
Get value of micro second time scale.
TimeValue operator-(TimeValue &tm)
Time subtraction.
Common Object Interface Layer.