Copyright © 2006 Mikko Rasa, Mikkosoft Productions
Distributed under the LGPL
*/
Copyright © 2006 Mikko Rasa, Mikkosoft Productions
Distributed under the LGPL
*/
serialization together with the raw() function. For creating TimeDeltas
with a specific length, see units.h.
*/
serialization together with the raw() function. For creating TimeDeltas
with a specific length, see units.h.
*/
/**
Returns the raw number stored inside the TimeDelta. This should only be used
for serialization and the result should not be interpreted in any way.
*/
/**
Returns the raw number stored inside the TimeDelta. This should only be used
for serialization and the result should not be interpreted in any way.
*/
/**
Fills in a timespec struct. To get a meaningful scalar value from the
TimeDelta, divide with one of the values in units.h.
*/
void fill_timespec(timespec &ts) const { ts.tv_sec=usec/1000000; ts.tv_nsec=(usec%1000000)*1000; }
/**
Fills in a timespec struct. To get a meaningful scalar value from the
TimeDelta, divide with one of the values in units.h.
*/
void fill_timespec(timespec &ts) const { ts.tv_sec=usec/1000000; ts.tv_nsec=(usec%1000000)*1000; }
TimeDelta operator+(const TimeDelta &t) const { return TimeDelta(usec+t.usec); }
TimeDelta &operator+=(const TimeDelta &t) { usec+=t.usec; return *this; }
TimeDelta operator+(const TimeDelta &t) const { return TimeDelta(usec+t.usec); }
TimeDelta &operator+=(const TimeDelta &t) { usec+=t.usec; return *this; }
bool operator>(const TimeDelta &t) const { return usec>t.usec; }
bool operator>=(const TimeDelta &t) const { return usec>=t.usec; }
bool operator>(const TimeDelta &t) const { return usec>t.usec; }
bool operator>=(const TimeDelta &t) const { return usec>=t.usec; }
bool operator==(const TimeDelta &t) const { return usec==t.usec; }
bool operator!=(const TimeDelta &t) const { return usec!=t.usec; }
bool operator==(const TimeDelta &t) const { return usec==t.usec; }
bool operator!=(const TimeDelta &t) const { return usec!=t.usec; }