Searched refs:ts2 (Results 1 – 1 of 1) sorted by relevance
666 timespec ts2; in TEST() local667 ASSERT_EQ(0, syscall(__NR_clock_gettime, CLOCK_MONOTONIC, &ts2)); in TEST()670 ts2.tv_sec -= ts1.tv_sec; in TEST()671 ts2.tv_nsec -= ts1.tv_nsec; in TEST()672 if (ts2.tv_nsec < 0) { in TEST()673 --ts2.tv_sec; in TEST()674 ts2.tv_nsec += NS_PER_S; in TEST()678 ASSERT_EQ(0, ts2.tv_sec); in TEST()679 ASSERT_LT(ts2.tv_nsec, 10'000'000); in TEST()