Searched refs:tv2 (Results 1 – 2 of 2) sorted by relevance
39 struct timeval tv2; in do_test() local40 (void) gettimeofday (&tv2, NULL); in do_test()42 tv2.tv_sec -= tv1.tv_sec; in do_test()43 tv2.tv_usec -= tv1.tv_usec; in do_test()44 if (tv2.tv_usec < 0) in do_test()45 --tv2.tv_sec; in do_test()47 if (tv2.tv_sec < 1) in do_test()
39 struct timeval tv2; in clock_nanosleep_test() local40 gettimeofday (&tv2, NULL); in clock_nanosleep_test()42 tv2.tv_sec -= tv1.tv_sec; in clock_nanosleep_test()43 tv2.tv_usec -= tv1.tv_usec; in clock_nanosleep_test()44 if (tv2.tv_usec < 0) in clock_nanosleep_test()45 --tv2.tv_sec; in clock_nanosleep_test()47 TEST_VERIFY (tv2.tv_sec >= 1); in clock_nanosleep_test()