Home
last modified time | relevance | path

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

/bionic/tests/
Dsys_time_test.cpp55 timeval tv2; in TEST() local
56 ASSERT_EQ(0, syscall(__NR_gettimeofday, &tv2, NULL)); in TEST()
59 tv2.tv_sec -= tv1.tv_sec; in TEST()
60 tv2.tv_usec -= tv1.tv_usec; in TEST()
61 if (tv2.tv_usec < 0) { in TEST()
62 --tv2.tv_sec; in TEST()
63 tv2.tv_usec += 1000000; in TEST()
67 ASSERT_EQ(0, tv2.tv_sec); in TEST()
68 ASSERT_LT(tv2.tv_usec, 1000); in TEST()