Lines Matching defs:timenow
1349 static struct timeval timenow; /* Current time */
1369 gettimeofday(&timenow, NULL);
1370 newp->c_time.tv_sec = timenow.tv_sec + secs;
1371 newp->c_time.tv_usec = timenow.tv_usec + usecs;
1423 if (gettimeofday(&timenow, NULL) < 0)
1425 if (!(p->c_time.tv_sec < timenow.tv_sec
1426 || (p->c_time.tv_sec == timenow.tv_sec
1427 && p->c_time.tv_usec <= timenow.tv_usec)))
1448 gettimeofday(&timenow, NULL);
1449 tvp->tv_sec = callout->c_time.tv_sec - timenow.tv_sec;
1450 tvp->tv_usec = callout->c_time.tv_usec - timenow.tv_usec;