Lines Matching refs:timenow
1312 static struct timeval timenow; /* Current time */ variable
1332 gettimeofday(&timenow, NULL);
1333 newp->c_time.tv_sec = timenow.tv_sec + secs;
1334 newp->c_time.tv_usec = timenow.tv_usec + usecs;
1386 if (gettimeofday(&timenow, NULL) < 0) in calltimeout()
1388 if (!(p->c_time.tv_sec < timenow.tv_sec in calltimeout()
1389 || (p->c_time.tv_sec == timenow.tv_sec in calltimeout()
1390 && p->c_time.tv_usec <= timenow.tv_usec))) in calltimeout()
1411 gettimeofday(&timenow, NULL);
1412 tvp->tv_sec = callout->c_time.tv_sec - timenow.tv_sec;
1413 tvp->tv_usec = callout->c_time.tv_usec - timenow.tv_usec;