Lines Matching defs:t1
96 timevaladd(struct timeval *t1, struct timeval *t2)
98 t1->tv_sec += t2->tv_sec;
99 t1->tv_usec += t2->tv_usec;
100 timevalfix(t1);
104 timevalsub(struct timeval *t1, struct timeval *t2)
106 t1->tv_sec -= t2->tv_sec;
107 t1->tv_usec -= t2->tv_usec;
108 timevalfix(t1);
112 timevalfix(struct timeval *t1)
114 if (t1->tv_usec < 0) {
115 t1->tv_sec--;
116 t1->tv_usec += 1000000;
118 if (t1->tv_usec >= 1000000) {
119 t1->tv_sec++;
120 t1->tv_usec -= 1000000;