Lines Matching refs:now
29 static struct timespec now;
142 clock_gettime(CLOCK_REALTIME_FAST, &now);
143 prev_sec = now.tv_sec;
146 tm = localtime(&now.tv_sec);
200 clock_gettime(CLOCK_REALTIME_FAST, &now);
201 if (now.tv_sec == prev_sec) {
204 delay.tv_nsec = 1000000000 - now.tv_nsec;
210 clock_gettime(CLOCK_REALTIME_FAST, &now);
212 n -= now.tv_sec - prev_sec;
213 prev_sec = now.tv_sec;