Go to the documentation of this file.
29 int tvSubMsec(
struct timeval,
struct timeval);
33 void tvSub(
struct timeval &res,
struct timeval
const &t1,
struct timeval
const &t2);
37 void tvAdd(
struct timeval &res,
struct timeval
const &t1,
struct timeval
const &t2);
41 void tvAssignAdd(
struct timeval &t,
struct timeval
const &add);
46 return t.tv_sec * 1000 + t.tv_usec / 1000;
102 std::ostream &
operator <<(std::ostream &,
const timeval &);
void tvAdd(struct timeval &res, struct timeval const &t1, struct timeval const &t2)
bool operator<(const timeval &a, const timeval &b)
long int tvToMsec(struct timeval &t)
Convert timeval to milliseconds.
bool operator<=(const timeval &a, const timeval &b)
bool operator>(const timeval &a, const timeval &b)
#define timercmp(tvp, uvp, cmp)
std::ostream & operator<<(std::ostream &, const timeval &)
prints <seconds>.<microseconds>
bool operator>=(const timeval &a, const timeval &b)
bool operator==(const timeval &a, const timeval &b)
const char * FormatStrf(time_t t)
int tvSubMsec(struct timeval, struct timeval)
time_t getCurrentTime(void)
Get current time.
void tvAssignAdd(struct timeval &t, struct timeval const &add)
struct timeval current_time
void tvSub(struct timeval &res, struct timeval const &t1, struct timeval const &t2)
const char * FormatHttpd(time_t t)
bool operator!=(const timeval &a, const timeval &b)