Lines Matching defs:now
163 struct timeval now;
167 getNow(&now);
168 // walk list, see if now >= ev->timeout for any events
170 dlog("~~~~ Looking for timers <= %ds + %dus ~~~~", (int)now.tv_sec, (int)now.tv_usec);
171 while ((tev != &timer_list) && (timercmp(&now, &tev->timeout, >))) {
219 struct timeval now;
221 getNow(&now);
229 dlog("~~~~ now = %ds + %dus ~~~~", (int)now.tv_sec, (int)now.tv_usec);
232 if (timercmp(&tev->timeout, &now, >)) {
233 timersub(&tev->timeout, &now, tv);
298 struct timeval now;
299 getNow(&now);
300 timeradd(&now, tv, &ev->timeout);
307 // list now points to the first event older than ev