|
Public Member Functions |
| TimeVal () |
| TimeVal (long seconds, long microseconds) |
| TimeVal (const GTimeVal& gtimeval) |
TimeVal& | operator= (const GTimeVal& gtimeval) |
void | assign_current_time () |
| Assigns the current time to the TimeVal instance.
|
void | add (const TimeVal& rhs) |
void | subtract (const TimeVal& rhs) |
void | add_seconds (long seconds) |
void | subtract_seconds (long seconds) |
void | add_milliseconds (long milliseconds) |
void | subtract_milliseconds (long milliseconds) |
void | add_microseconds (long microseconds) |
void | subtract_microseconds (long microseconds) |
TimeVal& | operator+= (const TimeVal& gtimeval) |
TimeVal& | operator-= (const TimeVal& gtimeval) |
TimeVal& | operator+= (long seconds) |
TimeVal& | operator-= (long seconds) |
double | as_double () const |
| Returns a double representation of the time interval.
|
bool | negative () const |
bool | valid () const |
| Checks whether the stored time interval is positive.
|
Related Functions |
(Note that these are not member functions.)
|
TimeVal | operator+ (const TimeVal& lhs, const TimeVal& rhs) |
TimeVal | operator+ (const TimeVal& lhs, long seconds) |
TimeVal | operator- (const TimeVal& lhs, const TimeVal& rhs) |
TimeVal | operator- (const TimeVal& lhs, long seconds) |
bool | operator== (const TimeVal& lhs, const TimeVal& rhs) |
bool | operator!= (const TimeVal& lhs, const TimeVal& rhs) |
bool | operator< (const TimeVal& lhs, const TimeVal& rhs) |
bool | operator> (const TimeVal& lhs, const TimeVal& rhs) |
bool | operator<= (const TimeVal& lhs, const TimeVal& rhs) |
bool | operator>= (const TimeVal& lhs, const TimeVal& rhs) |