Searched refs:ts2 (Results 1 – 1 of 1) sorted by relevance
512 timespec ts2; in TEST() local513 ASSERT_EQ(0, syscall(__NR_clock_gettime, CLOCK_MONOTONIC, &ts2)); in TEST()516 ts2.tv_sec -= ts1.tv_sec; in TEST()517 ts2.tv_nsec -= ts1.tv_nsec; in TEST()518 if (ts2.tv_nsec < 0) { in TEST()519 --ts2.tv_sec; in TEST()520 ts2.tv_nsec += NS_PER_S; in TEST()524 ASSERT_EQ(0, ts2.tv_sec); in TEST()525 ASSERT_LT(ts2.tv_nsec, 1000000); in TEST()