12 if (t.tv_sec < tv_sec)
15 if (t.tv_usec > tv_usec)
29 static const int usec_in_a_sec = 1000000;
31 gettimeofday(
this, 0);
35 tv_sec += (tv_usec) / usec_in_a_sec;
36 tv_usec %= usec_in_a_sec;
bool hasExpiredWrt(Timer const &t) const
void set(long int seconds, long int useconds)