#include <timeval.h>
Public Member Functions | |
TimeVal (long secs=0, long usecs=0) | |
bool | operator< (const TimeVal &tv) const |
bool | operator== (const TimeVal &tv) const |
bool | operator<= (const TimeVal &tv) const |
bool | operator>= (const TimeVal &tv) const |
TimeVal | operator- (const TimeVal &tv) const |
TimeVal | operator+ (const TimeVal &tv) const |
void | get_current_time () |
Public Attributes | |
long | tv_sec |
long | tv_usec |
SigCX::TimeVal::TimeVal | ( | long | secs = 0 , |
|
long | usecs = 0 | |||
) | [inline, explicit] |
Constructor.
secs | Seconds. | |
usecs | Microseconds. |
bool SigCX::TimeVal::operator< | ( | const TimeVal & | tv | ) | const [inline] |
Comparision operator.
bool SigCX::TimeVal::operator== | ( | const TimeVal & | tv | ) | const [inline] |
Comparision operator.
bool SigCX::TimeVal::operator<= | ( | const TimeVal & | tv | ) | const [inline] |
Comparision operator.
bool SigCX::TimeVal::operator>= | ( | const TimeVal & | tv | ) | const [inline] |
Comparision operator.
void SigCX::TimeVal::get_current_time | ( | ) |
Get the current time.
Store the current time in tv_sec
and tv_usec
.
Seconds.
Microseconds.