Lines Matching refs:timenow
1289 static struct timeval timenow; /* Current time */ variable
1309 gettimeofday(&timenow, NULL);
1310 newp->c_time.tv_sec = timenow.tv_sec + secs;
1311 newp->c_time.tv_usec = timenow.tv_usec + usecs;
1363 if (gettimeofday(&timenow, NULL) < 0) in calltimeout()
1365 if (!(p->c_time.tv_sec < timenow.tv_sec in calltimeout()
1366 || (p->c_time.tv_sec == timenow.tv_sec in calltimeout()
1367 && p->c_time.tv_usec <= timenow.tv_usec))) in calltimeout()
1388 gettimeofday(&timenow, NULL);
1389 tvp->tv_sec = callout->c_time.tv_sec - timenow.tv_sec;
1390 tvp->tv_usec = callout->c_time.tv_usec - timenow.tv_usec;