Home
last modified time | relevance | path

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

/glibc-2.36/posix/
Dtst-nanosleep.c39 struct timeval tv2; in do_test() local
40 (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()
/glibc-2.36/time/
Dtst-clock_nanosleep.c39 struct timeval tv2; in clock_nanosleep_test() local
40 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()