Home
last modified time | relevance | path

Searched refs:tv2 (Results 1 – 1 of 1) sorted by relevance

/bionic/tests/
Dsys_time_test.cpp139 timeval tv2; in TEST() local
140 ASSERT_EQ(0, syscall(__NR_gettimeofday, &tv2, nullptr)); in TEST()
143 tv2.tv_sec -= tv1.tv_sec; in TEST()
144 tv2.tv_usec -= tv1.tv_usec; in TEST()
145 if (tv2.tv_usec < 0) { in TEST()
146 --tv2.tv_sec; in TEST()
147 tv2.tv_usec += 1000000; in TEST()
151 ASSERT_EQ(0, tv2.tv_sec); in TEST()
152 ASSERT_LT(tv2.tv_usec, 10'000); in TEST()