Lines Matching refs:now
335 struct timeval now;
343 if (gettimeofday(&now, NULL) == -1)
347 el = elapsed(&p->last, &now);
364 now.tv_sec = el/1000/1000;
365 now.tv_usec = el - now.tv_sec*1000*1000;
369 if (select(p->rx+1, &fds, NULL, NULL, &now) == -1)
403 struct timeval now;
413 if (gettimeofday(&now, NULL) == -1)
416 el = elapsed(&p->last, &now);
425 now.tv_sec = el/1000/1000;
426 now.tv_usec = el - now.tv_sec*1000*1000;
430 if (select(p->rx+1, &fds, NULL, NULL, &now) == -1)