Home
last modified time | relevance | path

Searched refs:time_res (Results 1 – 4 of 4) sorted by relevance

/third_party/ltp/testcases/open_posix_testsuite/stress/threads/pthread_mutex_init/
Ds-c.c106 struct timeval time_zero, time_cour, time_res, time_sav[8]; in main() local
206 time_res.tv_usec = in main()
208 if (time_res.tv_usec < 1000000) { in main()
209 time_res.tv_sec = in main()
212 time_res.tv_sec = time_cour.tv_sec - time_zero.tv_sec; in main()
213 time_res.tv_usec -= 1000000; in main()
223 time_sav[7].tv_sec = time_res.tv_sec; in main()
224 time_sav[7].tv_usec = time_res.tv_usec; in main()
226 time_sav[sav].tv_sec = time_res.tv_sec; in main()
227 time_sav[sav].tv_usec = time_res.tv_usec; in main()
[all …]
/third_party/ltp/testcases/open_posix_testsuite/stress/threads/pthread_cond_init/
Ds-c.c98 struct timeval time_zero, time_cour, time_res, time_sav[8]; in main() local
208 time_res.tv_usec = in main()
210 if (time_res.tv_usec < 1000000) { in main()
211 time_res.tv_sec = in main()
214 time_res.tv_sec = time_cour.tv_sec - time_zero.tv_sec; in main()
215 time_res.tv_usec -= 1000000; in main()
225 time_sav[7].tv_sec = time_res.tv_sec; in main()
226 time_sav[7].tv_usec = time_res.tv_usec; in main()
228 time_sav[sav].tv_sec = time_res.tv_sec; in main()
229 time_sav[sav].tv_usec = time_res.tv_usec; in main()
/third_party/ltp/testcases/kernel/syscalls/setitimer/
Dsetitimer01.c142 struct timespec time_res; in setup() local
149 SAFE_CLOCK_GETRES(CLOCK_MONOTONIC_COARSE, &time_res); in setup()
151 time_step = time_res.tv_nsec / 1000; in setup()
156 time_res.tv_nsec, time_step); in setup()
/third_party/ltp/testcases/kernel/syscalls/getitimer/
Dgetitimer01.c106 struct timespec time_res; in setup() local
108 SAFE_CLOCK_GETRES(CLOCK_MONOTONIC_COARSE, &time_res); in setup()
109 jiffy = (time_res.tv_nsec + 999) / 1000; in setup()