Home
last modified time | relevance | path

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

/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/clock_nanosleep/
D3-1.c27 struct timespec tssleep, tsbefore, tsafter; in main() local
31 if (clock_gettime(CLOCK_REALTIME, &tsbefore) != 0) { in main()
36 sleepuntilsec = tsbefore.tv_sec - SLEEPSEC; in main()
38 tssleep.tv_nsec = tsbefore.tv_nsec; in main()
51 if (tsafter.tv_sec >= tsbefore.tv_sec) { in main()
52 if (tsafter.tv_sec <= (tsbefore.tv_sec + ACCEPTABLEDELTA)) { in main()
D1-1.c20 struct timespec tssleep, tsbefore, tsafter; in main() local
23 if (clock_gettime(CLOCK_REALTIME, &tsbefore) != 0) { in main()
43 slepts = tsafter.tv_sec - tsbefore.tv_sec; in main()
44 sleptns = tsafter.tv_nsec - tsbefore.tv_nsec; in main()
D2-1.c26 struct timespec tssleep, tsbefore, tsafter; in main() local
30 if (clock_gettime(CLOCK_REALTIME, &tsbefore) != 0) { in main()
35 sleepuntilsec = tsbefore.tv_sec + SLEEPSEC; in main()
37 tssleep.tv_nsec = tsbefore.tv_nsec; in main()
D1-4.c22 struct timespec tssleep, tsbefore, tsafter; in main() local
25 if (clock_gettime(CLOCK_REALTIME, &tsbefore) != 0) { in main()
59 if ((tsafter.tv_sec - tsbefore.tv_sec) < SLEEPSEC) { in main()
64 (int)tsafter.tv_sec - (int)tsbefore.tv_sec, in main()
D2-3.c24 struct timespec tssleep, tsbefore, tsafter; in main() local
28 if (clock_gettime(CLOCK_REALTIME, &tsbefore) != 0) { in main()
33 sleepuntilsec = tsbefore.tv_sec + SLEEPSEC; in main()
40 tssleep.tv_nsec = tsbefore.tv_nsec; in main()
D1-3.c37 struct timespec tssleep, tsbefore, tsafter; in main() local
41 if (clock_gettime(CLOCK_REALTIME, &tsbefore) != 0) { in main()
86 if ((tsafter.tv_sec - tsbefore.tv_sec) < SLEEPSEC) { in main()
91 (int)tsafter.tv_sec - (int)tsbefore.tv_sec, in main()
D1-5.c30 struct timespec tsbefore, tsafter; in main() local
32 if (clock_gettime(CLOCK_REALTIME, &tsbefore) != 0) { in main()
82 slepts = tsafter.tv_sec - tsbefore.tv_sec; in main()
85 printf("Start %d sec; End %d sec\n", (int)tsbefore.tv_sec, in main()
D2-2.c38 struct timespec tssleep, tsbefore, tsafter; in main() local
43 if (clock_gettime(CLOCK_REALTIME, &tsbefore) != 0) { in main()
48 sleepuntilsec = tsbefore.tv_sec + SLEEPSEC; in main()
66 tssleep.tv_nsec = tsbefore.tv_nsec; in main()
D9-1.c37 struct timespec tssleep, tsbefore, tsafter, tsremain; in main() local
41 if (clock_gettime(CLOCK_REALTIME, &tsbefore) != 0) { in main()
69 (tsafter.tv_sec - tsbefore.tv_sec) + in main()
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/timer_settime/
D9-2.c49 struct timespec tsbefore, tsafter; in main() local
91 if (clock_gettime(CLOCK_REALTIME, &tsbefore) != 0) { in main()
96 if (tsbefore.tv_nsec + timeroffsets[i][1] < 1000000000) { in main()
97 its.it_value.tv_sec = tsbefore.tv_sec + in main()
99 its.it_value.tv_nsec = tsbefore.tv_nsec + in main()
102 its.it_value.tv_sec = tsbefore.tv_sec + in main()
104 its.it_value.tv_nsec = tsbefore.tv_nsec + in main()
D6-1.c37 struct timespec tsbefore, tsafter; in main() local
88 if (clock_gettime(CLOCK_REALTIME, &tsbefore) != 0) { in main()
108 timeelapsed = tsafter.tv_sec - tsbefore.tv_sec; in main()
122 tsbefore.tv_sec = tsafter.tv_sec; in main()
123 tsbefore.tv_nsec = tsafter.tv_nsec; in main()
133 timeelapsed = tsafter.tv_sec - tsbefore.tv_sec; in main()
D9-1.c42 struct timespec tsbefore, tsafter; in main() local
89 if (clock_gettime(CLOCK_REALTIME, &tsbefore) != 0) { in main()
109 totalnsecs = (unsigned long)(tsafter.tv_sec - tsbefore.tv_sec) * in main()
110 1000000000 + (tsafter.tv_nsec - tsbefore.tv_nsec); in main()
D2-1.c41 struct timespec tsbefore, tsafter; in main() local
93 if (clock_gettime(CLOCK_REALTIME, &tsbefore) != 0) { in main()
113 timeelapsed = tsafter.tv_sec - tsbefore.tv_sec; in main()
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/nanosleep/
D1-1.c17 struct timespec tssleepfor, tsstorage, tsbefore, tsafter; in main() local
21 if (clock_gettime(CLOCK_REALTIME, &tsbefore) == -1) { in main()
41 slepts = tsafter.tv_sec - tsbefore.tv_sec; in main()
42 sleptns = tsafter.tv_nsec - tsbefore.tv_nsec; in main()
D1-2.c20 struct timespec tssleepfor, tsstorage, tsbefore, tsafter; in main() local
24 if (clock_gettime(CLOCK_REALTIME, &tsbefore) == -1) { in main()
58 if ((tsafter.tv_sec - tsbefore.tv_sec) < sleepsec) { in main()
63 (int)tsafter.tv_sec - (int)tsbefore.tv_sec, in main()
D3-2.c27 struct timespec tsbefore, tsafter; in main() local
29 if (clock_gettime(CLOCK_REALTIME, &tsbefore) != 0) { in main()
79 slepts = tsafter.tv_sec - tsbefore.tv_sec; in main()
81 printf("Start %d sec; End %d sec\n", (int)tsbefore.tv_sec, in main()
D2-1.c19 struct timespec tssleepfor, tsstorage, tsbefore, tsafter; in main() local
28 if (clock_gettime(CLOCK_REALTIME, &tsbefore) == -1) { in main()
49 slepts = tsafter.tv_sec - tsbefore.tv_sec; in main()
50 sleptns = tsafter.tv_nsec - tsbefore.tv_nsec; in main()
D1-3.c26 struct timespec tssleepfor, tsstorage, tsbefore, tsafter; in main() local
31 if (clock_gettime(CLOCK_REALTIME, &tsbefore) == -1) { in main()
76 if ((tsafter.tv_sec - tsbefore.tv_sec) < sleepsec) { in main()
81 (int)tsafter.tv_sec - (int)tsbefore.tv_sec, in main()
D10000-1.c49 struct timespec tssleepfor, tsstorage, tsbefore, tsafter; in main() local
59 if (clock_gettime(CLOCK_REALTIME, &tsbefore) == -1) { in main()
72 slepts = tsafter.tv_sec - tsbefore.tv_sec; in main()
73 sleptns = tsafter.tv_nsec - tsbefore.tv_nsec; in main()
D7-2.c32 struct timespec tssleepfor, tsstorage, tsbefore, tsafter; in main() local
37 if (clock_gettime(CLOCK_REALTIME, &tsbefore) == -1) { in main()
68 sleptplusremaining = (tsafter.tv_sec - tsbefore.tv_sec) + in main()