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