Home
last modified time | relevance | path

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

/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/timer_settime/
D9-2.c49 struct timespec tsbefore, tsafter; in main() local
121 if (clock_gettime(CLOCK_REALTIME, &tsafter) != 0) { in main()
127 (int)tsafter.tv_sec, (int)tsafter.tv_nsec); in main()
128 if (tsafter.tv_sec < its.it_value.tv_sec) { in main()
130 (int)tsafter.tv_sec, (int)its.it_value.tv_sec); in main()
132 } else if (tsafter.tv_sec == its.it_value.tv_sec) { in main()
133 if (tsafter.tv_nsec < its.it_value.tv_nsec) { in main()
136 (int)tsafter.tv_nsec, in main()
D6-1.c37 struct timespec tsbefore, tsafter; in main() local
103 if (clock_gettime(CLOCK_REALTIME, &tsafter) != 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()
129 if (clock_gettime(CLOCK_REALTIME, &tsafter) != 0) { in main()
133 timeelapsed = tsafter.tv_sec - tsbefore.tv_sec; in main()
D9-1.c42 struct timespec tsbefore, tsafter; in main() local
104 if (clock_gettime(CLOCK_REALTIME, &tsafter) != 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
108 if (clock_gettime(CLOCK_REALTIME, &tsafter) != 0) { in main()
113 timeelapsed = tsafter.tv_sec - tsbefore.tv_sec; in main()
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/clock_nanosleep/
D1-1.c20 struct timespec tssleep, tsbefore, tsafter; in main() local
35 if (clock_gettime(CLOCK_REALTIME, &tsafter) == -1) { 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
45 if (clock_gettime(CLOCK_REALTIME, &tsafter) == -1) { in main()
50 if (tsafter.tv_sec >= sleepuntilsec) { in main()
51 if (tsafter.tv_sec <= (sleepuntilsec + ACCEPTABLEDELTA)) { in main()
D3-1.c27 struct timespec tssleep, tsbefore, tsafter; in main() local
46 if (clock_gettime(CLOCK_REALTIME, &tsafter) == -1) { in main()
51 if (tsafter.tv_sec >= tsbefore.tv_sec) { in main()
52 if (tsafter.tv_sec <= (tsbefore.tv_sec + ACCEPTABLEDELTA)) { in main()
D1-4.c22 struct timespec tssleep, tsbefore, tsafter; in main() local
50 if (clock_gettime(CLOCK_REALTIME, &tsafter) != 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
59 if (clock_gettime(CLOCK_REALTIME, &tsafter) != 0) { in main()
68 if (tsafter.tv_sec < sleepuntilsec) { in main()
73 (long long int)tsafter.tv_sec, in main()
D1-3.c37 struct timespec tssleep, tsbefore, tsafter; in main() local
77 if (clock_gettime(CLOCK_REALTIME, &tsafter) != 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
77 if (clock_gettime(CLOCK_REALTIME, &tsafter) == -1) { in main()
82 slepts = tsafter.tv_sec - tsbefore.tv_sec; in main()
86 (int)tsafter.tv_sec); in main()
D2-2.c38 struct timespec tssleep, tsbefore, tsafter; in main() local
85 if (clock_gettime(CLOCK_REALTIME, &tsafter) != 0) { in main()
95 if (tsafter.tv_sec < sleepuntilsec) { in main()
100 (long long int)tsafter.tv_sec, in main()
D9-1.c37 struct timespec tssleep, tsbefore, tsafter, tsremain; in main() local
64 if (clock_gettime(CLOCK_REALTIME, &tsafter) != 0) { in main()
69 (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
33 if (clock_gettime(CLOCK_REALTIME, &tsafter) == -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
49 if (clock_gettime(CLOCK_REALTIME, &tsafter) == -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
74 if (clock_gettime(CLOCK_REALTIME, &tsafter) == -1) { in main()
79 slepts = tsafter.tv_sec - tsbefore.tv_sec; in main()
82 (int)tsafter.tv_sec); in main()
D2-1.c19 struct timespec tssleepfor, tsstorage, tsbefore, tsafter; in main() local
41 if (clock_gettime(CLOCK_REALTIME, &tsafter) == -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
67 if (clock_gettime(CLOCK_REALTIME, &tsafter) == -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
65 if (clock_gettime(CLOCK_REALTIME, &tsafter) == -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
63 if (clock_gettime(CLOCK_REALTIME, &tsafter) == -1) { in main()
68 sleptplusremaining = (tsafter.tv_sec - tsbefore.tv_sec) + in main()