Lines Matching refs:tv_usec
59 if(e->ev_timeout.tv_usec < f->ev_timeout.tv_usec) in mini_ev_cmp()
61 if(e->ev_timeout.tv_usec > f->ev_timeout.tv_usec) in mini_ev_cmp()
177 p->ev_timeout.tv_usec > now->tv_usec)) { in handle_timeouts()
180 if(now->tv_usec > p->ev_timeout.tv_usec) { in handle_timeouts()
182 wait->tv_usec = 1000000 - (now->tv_usec - in handle_timeouts()
183 p->ev_timeout.tv_usec); in handle_timeouts()
185 wait->tv_usec = p->ev_timeout.tv_usec in handle_timeouts()
186 - now->tv_usec; in handle_timeouts()
189 (long long)wait->tv_sec, (int)wait->tv_usec); in handle_timeouts()
246 timeout = wait->tv_sec*1000 + wait->tv_usec/1000; in handle_select()
250 nultm.tv_usec = 0; in handle_select()
495 (tv?(long long)tv->tv_sec*1000+(long long)tv->tv_usec/1000:-1), in event_add()
560 ev->ev_timeout.tv_usec = tv->tv_usec + now->tv_usec; in event_add()
561 while(ev->ev_timeout.tv_usec >= 1000000) { in event_add()
562 ev->ev_timeout.tv_usec -= 1000000; in event_add()
577 (long long)ev->ev_timeout.tv_usec/1000:-1, in event_del()