Lines Matching refs:t1
103 timevaladd(struct timeval *t1, struct timeval *t2)
105 t1->tv_sec += t2->tv_sec;
106 t1->tv_usec += t2->tv_usec;
107 timevalfix(t1);
111 timevalsub(struct timeval *t1, struct timeval *t2)
113 t1->tv_sec -= t2->tv_sec;
114 t1->tv_usec -= t2->tv_usec;
115 timevalfix(t1);
119 timevalfix(struct timeval *t1)
121 if (t1->tv_usec < 0) {
122 t1->tv_sec--;
123 t1->tv_usec += 1000000;
125 if (t1->tv_usec >= 1000000) {
126 t1->tv_sec++;
127 t1->tv_usec -= 1000000;