Lines Matching full:now
23 struct timespec now, tst;
28 if (sscanf(argv[1], "%ld", &now.tv_sec) != 1)
33 if (labs(tst.tv_sec - now.tv_sec) > 5)
34 return pr_fail("%ld %ld\n", now.tv_sec, tst.tv_sec);
45 clock_gettime(CLOCK_MONOTONIC, &now);
55 if (labs(tst.tv_sec - now.tv_sec) > 5)
57 now.tv_sec, tst.tv_sec);
75 if (labs(tst.tv_sec - now.tv_sec - OFFSET) > 5)
77 now.tv_sec + OFFSET, tst.tv_sec);
81 snprintf(now_str, sizeof(now_str), "%ld", now.tv_sec + OFFSET);