Lines Matching defs:timenow
948 static struct timeval timenow; /* Current time */
974 gettimeofday(&timenow, NULL);
975 newp->c_time.tv_sec = timenow.tv_sec + secs;
976 newp->c_time.tv_usec = timenow.tv_usec + usecs;
1030 if (gettimeofday(&timenow, NULL) < 0)
1032 if (!(p->c_time.tv_sec < timenow.tv_sec
1033 || (p->c_time.tv_sec == timenow.tv_sec
1034 && p->c_time.tv_usec <= timenow.tv_usec)))
1055 gettimeofday(&timenow, NULL);
1056 tvp->tv_sec = callout->c_time.tv_sec - timenow.tv_sec;
1057 tvp->tv_usec = callout->c_time.tv_usec - timenow.tv_usec;