Lines Matching refs:now
87 struct timeval now, target, remaining; in prompt_tty() local
127 (void)gettimeofday(&now, NULL); in prompt_tty()
130 timeradd(&now, &remaining, &target); in prompt_tty()
133 now.tv_sec = now.tv_usec = 0; in prompt_tty()
147 gettimeofday(&now, NULL); in prompt_tty()
148 if (timercmp(&now, &target, >)) in prompt_tty()
150 timersub(&target, &now, &remaining); in prompt_tty()
216 struct timeval now, target, remaining; in prompt_notty() local
227 (void)gettimeofday(&now, NULL); in prompt_notty()
230 timeradd(&now, &remaining, &target); in prompt_notty()
233 now.tv_sec = now.tv_usec = 0; in prompt_notty()
245 gettimeofday(&now, NULL); in prompt_notty()
246 if (timercmp(&now, &target, >)) in prompt_notty()
248 timersub(&target, &now, &remaining); in prompt_notty()