Lines Matching defs:now
210 struct timespec now;
216 RL(clock_gettime(CLOCK_MONOTONIC, &now));
227 /* Try the same with an absolute time near now. */
229 its.it_value.tv_sec += now.tv_sec + 60;
254 struct timespec then, now, delta;
273 RL(clock_gettime(CLOCK_MONOTONIC, &now));
276 timespecsub(&now, &then, &delta);
278 "then=%jd.%09lu now=%jd.%09lu delta=%jd.%09lu",
280 (intmax_t)now.tv_sec, now.tv_nsec,
295 struct timespec then, now, delta;
316 ATF_REQUIRE(clock_gettime(CLOCK_MONOTONIC, &now) == 0);
319 timespecsub(&now, &then, &delta);
321 "then=%jd.%09lu now=%jd.%09lu delta=%jd.%09lu",
323 (intmax_t)now.tv_sec, now.tv_nsec,
338 struct timespec then, now, delta;
353 ATF_REQUIRE(clock_gettime(CLOCK_MONOTONIC, &now) == 0);
358 timespecsub(&now, &then, &delta);
360 "then=%jd.%09lu now=%jd.%09lu delta=%jd.%09lu",
362 (intmax_t)now.tv_sec, now.tv_nsec,
377 struct timespec then, now, delta;
401 ATF_REQUIRE(clock_gettime(CLOCK_MONOTONIC, &now) == 0);
404 timespecsub(&now, &then, &delta);
406 "then=%jd.%09lu now=%jd.%09lu delta=%jd.%09lu",
408 (intmax_t)now.tv_sec, now.tv_nsec,
424 struct timespec now;
435 ATF_REQUIRE(clock_gettime(CLOCK_REALTIME, &now) == 0);
438 ATF_REQUIRE(clock_settime(CLOCK_REALTIME, &now) == 0);
450 struct timespec now;
455 ATF_REQUIRE(clock_gettime(CLOCK_REALTIME, &now) == 0);
456 ATF_REQUIRE(clock_settime(CLOCK_REALTIME, &now) == 0);
621 struct timespec then, now;
657 ATF_REQUIRE(clock_gettime(CLOCK_MONOTONIC, &now) == 0);
659 ATF_REQUIRE(now.tv_sec - then.tv_sec >= 1);
668 ATF_REQUIRE(clock_gettime(CLOCK_MONOTONIC, &now) == 0);
670 ATF_REQUIRE(now.tv_sec - then.tv_sec >= 1);
677 ATF_REQUIRE(clock_gettime(CLOCK_MONOTONIC, &now) == 0);
714 struct timespec then, now, delta;
742 ATF_REQUIRE(clock_gettime(CLOCK_MONOTONIC, &now) == 0);
744 timespecsub(&now, &then, &delta);