/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/timer_settime/ |
D | 9-2.c | 49 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()
|
D | 6-1.c | 37 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()
|
D | 9-1.c | 42 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()
|
D | 2-1.c | 41 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/ |
D | 1-1.c | 20 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()
|
D | 2-1.c | 26 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()
|
D | 3-1.c | 27 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()
|
D | 1-4.c | 22 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()
|
D | 2-3.c | 24 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()
|
D | 1-3.c | 37 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()
|
D | 1-5.c | 30 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()
|
D | 2-2.c | 38 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()
|
D | 9-1.c | 37 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/ |
D | 1-1.c | 17 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()
|
D | 1-2.c | 20 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()
|
D | 3-2.c | 27 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()
|
D | 2-1.c | 19 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()
|
D | 1-3.c | 26 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()
|
D | 10000-1.c | 49 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()
|
D | 7-2.c | 32 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()
|