Lines Matching refs:elapsed
150 check_time(time_t elapsed, time_t expected)
152 time_t diff = expected - elapsed;
159 return (elapsed >= expected || diff <= TIME_DRIFT);
163 poll_wrapper(pollfd_t *fds, nfds_t nfds, int timeout, time_t *elapsed)
172 *elapsed = time(NULL) - start;
175 fds, nfds, timeout, ret, (*elapsed));
181 dppoll(int pollfd, pollfd_t *fds, nfds_t nfds, int timeout, time_t *elapsed)
195 *elapsed = time(NULL) - start;
198 fds, arg.dp_nfds, arg.dp_timeout, ret, (*elapsed));
233 time_t elapsed;
239 ret = poll_wrapper(NULL, 0, timeout * 1000, &elapsed);
245 if (!check_time(elapsed, timeout)) {
247 elapsed, timeout);
261 time_t elapsed;
272 ret = poll_wrapper(&fd, 1, timeout * 1000, &elapsed);
278 if (!check_time(elapsed, timeout)) {
280 elapsed, timeout);
294 time_t elapsed;
300 ret = dppoll(pollfd, NULL, 0, timeout * 1000, &elapsed);
306 if (!check_time(elapsed, timeout)) {
308 elapsed, timeout);
322 time_t elapsed;
352 ret = dppoll(pollfd, fds, 5, timeout * 1000, &elapsed);
358 if (!check_time(elapsed, timeout)) {
360 elapsed, timeout);