Home
last modified time | relevance | path

Searched refs:CLOCK_REALTIME (Results 1 – 25 of 313) sorted by relevance

12345678910>>...13

/third_party/ltp/testcases/open_posix_testsuite/functional/timers/clocks/
Dtwopsetclock.c36 if (clock_gettime(CLOCK_REALTIME, &tsreset) != 0) { in main()
47 if (clock_settime(CLOCK_REALTIME, &tschild) != 0) { in main()
50 if (clock_gettime(CLOCK_REALTIME, &tpget) == -1) { in main()
61 if (clock_settime(CLOCK_REALTIME, &tsparent) != 0) { in main()
73 if (clock_gettime(CLOCK_REALTIME, &tpget) == -1) { in main()
84 if (clock_settime(CLOCK_REALTIME, &tsreset) != 0) { in main()
Dinvaliddates.c38 if (clock_gettime(CLOCK_REALTIME, &tsreset) != 0) { in main()
46 if (clock_settime(CLOCK_REALTIME, &tpset) == 0) { in main()
47 if (clock_gettime(CLOCK_REALTIME, &tpget) == -1) { in main()
71 if (clock_settime(CLOCK_REALTIME, &tsreset) != 0) { in main()
77 if (clock_settime(CLOCK_REALTIME, &tsreset) != 0) { in main()
/third_party/musl/libc-test/src/functionalext/thread/
Dpthread_mutex_ext.c28 GetDelayedTimeByClockid(&ts, DELAY_TIME_100_MS, CLOCK_REALTIME); in PthreadClocklockOutRealTime()
29 TEST(pthread_mutex_clocklock(mtx, CLOCK_REALTIME, &ts) == ETIMEDOUT); in PthreadClocklockOutRealTime()
31 clock_gettime(CLOCK_REALTIME, &tsNow); in PthreadClocklockOutRealTime()
64 GetDelayedTimeByClockid(&ts, DELAY_TIME_100_MS, CLOCK_REALTIME); in PthreadClocklockNoOutRealTime()
65 TEST(pthread_mutex_clocklock(mtx, CLOCK_REALTIME, &ts) == 0); in PthreadClocklockNoOutRealTime()
164 GetDelayedTimeByClockid(&ts, DELAY_TIME_100_MS, CLOCK_REALTIME); in PthreadClocklockOutRealTime2()
165 clock_gettime(CLOCK_REALTIME, &tsNow); in PthreadClocklockOutRealTime2()
167 clock_settime(CLOCK_REALTIME, &tsNow); in PthreadClocklockOutRealTime2()
168 TEST(pthread_mutex_clocklock(mtx, CLOCK_REALTIME, &ts) == ETIMEDOUT); in PthreadClocklockOutRealTime2()
170 clock_gettime(CLOCK_REALTIME, &tsNow); in PthreadClocklockOutRealTime2()
[all …]
Dpthread_cond_timedwait.c62 EXPECT_EQ(clock_gettime(CLOCK_REALTIME, &ts), 0); in pthread_cond_timedwait_0010()
89 EXPECT_EQ(clock_gettime(CLOCK_REALTIME, &ts), 0); in pthread_cond_timedwait_0020()
112 EXPECT_EQ(clock_gettime(CLOCK_REALTIME, &ts), 0); in pthread_cond_timedwait_time64_0010()
188 clockid_t clock_id = CLOCK_REALTIME; in pthread_cond_clockwait_0010()
235 clock_gettime(CLOCK_REALTIME, &ts); in ClockWaitTimedwait2()
239 clockid_t clock_id = CLOCK_REALTIME; in ClockWaitTimedwait2()
269 clockid_t clock_id = CLOCK_REALTIME; in ClockWaitTimeOut()
272 clock_gettime(CLOCK_REALTIME, &tsNow); in ClockWaitTimeOut()
386 clockid_t clock_id = CLOCK_REALTIME; in ClockWaitTimeMismatch()
409 clock_gettime(CLOCK_REALTIME, &ts); in ClockWaitTimeMismatch2()
[all …]
/third_party/ltp/testcases/kernel/syscalls/clock_gettime/
Dleapsec01.c99 SAFE_CLOCK_GETTIME(CLOCK_REALTIME, &now); in test_hrtimer_early_expiration()
105 ret = clock_nanosleep(CLOCK_REALTIME, TIMER_ABSTIME, &target, NULL); in test_hrtimer_early_expiration()
111 SAFE_CLOCK_GETTIME(CLOCK_REALTIME, &now); in test_hrtimer_early_expiration()
128 SAFE_CLOCK_GETTIME(CLOCK_REALTIME, &now); in run_leapsec()
142 SAFE_CLOCK_SETTIME(CLOCK_REALTIME, &now); in run_leapsec()
165 SAFE_CLOCK_GETTIME(CLOCK_REALTIME, &now); in run_leapsec()
172 SAFE_CLOCK_SETTIME(CLOCK_REALTIME, &start); in run_leapsec()
192 SAFE_CLOCK_GETTIME(CLOCK_REALTIME, &now); in cleanup()
195 SAFE_CLOCK_SETTIME(CLOCK_REALTIME, &now); in cleanup()
/third_party/ltp/testcases/kernel/syscalls/clock_settime/
Dclock_settime02.c31 .type = CLOCK_REALTIME,
38 .type = CLOCK_REALTIME,
45 .type = CLOCK_REALTIME,
52 .type = CLOCK_REALTIME,
120 TEST(tv->clock_gettime(CLOCK_REALTIME, tst_ts_get(&spec))); in verify_clock_settime()
123 tst_clock_name(CLOCK_REALTIME)); in verify_clock_settime()
Dclock_settime01.c49 ret = tv->clock_gettime(CLOCK_REALTIME, tst_ts_get(ts)); in do_clock_gettime()
64 TEST(tv->clock_settime(CLOCK_REALTIME, tst_ts_get(change))); in verify_clock_settime()
67 tst_clock_name(CLOCK_REALTIME)); in verify_clock_settime()
85 TEST(tv->clock_settime(CLOCK_REALTIME, tst_ts_get(change))); in verify_clock_settime()
88 tst_clock_name(CLOCK_REALTIME)); in verify_clock_settime()
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/sem_timedwait/
D10-1.c44 #ifdef CLOCK_REALTIME in main()
46 if (clock_gettime(CLOCK_REALTIME, &ts) != 0) { in main()
66 #ifdef CLOCK_REALTIME in main()
67 if (clock_gettime(CLOCK_REALTIME, &ts_2) != 0) { in main()
/third_party/ltp/testcases/kernel/syscalls/clock_adjtime/
Dclock_adjtime02.c87 .clktype = CLOCK_REALTIME,
92 .clktype = CLOCK_REALTIME,
99 .clktype = CLOCK_REALTIME,
106 .clktype = CLOCK_REALTIME,
139 rval = tv->clock_adjtime(CLOCK_REALTIME, tst_timex_get(txcptr)); in verify_clock_adjtime()
202 rval = tv->clock_adjtime(CLOCK_REALTIME, tst_timex_get(&saved)); in setup()
248 rval = tv->clock_adjtime(CLOCK_REALTIME, tst_timex_get(&saved)); in cleanup()
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/clock_settime/
D8-1.c45 if (clock_gettime(CLOCK_REALTIME, &tsT0) != 0) { in main()
58 if (clock_nanosleep(CLOCK_REALTIME, 0, &tssleep, NULL) != 0) { in main()
63 if (clock_gettime(CLOCK_REALTIME, &tsend) != 0) { in main()
92 if (clock_settime(CLOCK_REALTIME, &tsT0) != 0) { in main()
D7-1.c47 if (clock_gettime(CLOCK_REALTIME, &tsT0) != 0) { in main()
61 if (clock_nanosleep(CLOCK_REALTIME, flags, &tsT1, NULL) != 0) { in main()
66 if (clock_gettime(CLOCK_REALTIME, &tsT2) != 0) { in main()
93 if (clock_settime(CLOCK_REALTIME, &tsT0) != 0) { in main()
D7-2.c46 if (clock_gettime(CLOCK_REALTIME, &tsT0) != 0) { in main()
63 if (clock_nanosleep(CLOCK_REALTIME, flags, &tsT1, NULL) != 0) { in main()
68 if (clock_gettime(CLOCK_REALTIME, &tsT3) != 0) { in main()
96 if (clock_settime(CLOCK_REALTIME, &tsT2) != 0) { in main()
D4-1.c80 if (clock_gettime(CLOCK_REALTIME, &tpT0) != 0) { in main()
85 if (timer_create(CLOCK_REALTIME, &ev, &tid) != 0) { in main()
102 if (clock_settime(CLOCK_REALTIME, &tpT0) != 0) { in main()
112 if (clock_gettime(CLOCK_REALTIME, &tpT2) != 0) { in main()
/third_party/ltp/testcases/kernel/syscalls/timer_create/
Dtimer_create02.c53 {CLOCK_REALTIME, NULL, &timer_id, EFAULT, "invalid sigevent struct"},
54 {CLOCK_REALTIME, &sig_ev, NULL, EFAULT, "invalid timer ID"},
56 {CLOCK_REALTIME, &sig_ev_inv_not, &timer_id, EINVAL, "wrong sigev_notify"},
57 {CLOCK_REALTIME, &sig_ev_inv_sig, &timer_id, EINVAL, "wrong sigev_signo"},
/third_party/boost/libs/serialization/performance/xml/
Dhigh_resolution_timer.hpp156 if (-1 == clock_gettime(CLOCK_REALTIME, &now)) in now()
163 if (-1 == clock_gettime(CLOCK_REALTIME, &start_time)) in restart()
169 if (-1 == clock_gettime(CLOCK_REALTIME, &now)) in elapsed()
187 if (-1 == clock_getres(CLOCK_REALTIME, &resolution)) in elapsed_min()
248 if (-1 == clock_gettime(CLOCK_REALTIME, &now)) in now()
257 else if (-1 == clock_gettime(CLOCK_REALTIME, &start_time)) in restart()
266 if (-1 == clock_gettime(CLOCK_REALTIME, &now)) in elapsed()
290 if (-1 == clock_getres(CLOCK_REALTIME, &resolution)) in elapsed_min()
/third_party/boost/libs/spirit/workbench/
Dhigh_resolution_timer.hpp152 if (-1 == clock_gettime(CLOCK_REALTIME, &now)) in now()
159 if (-1 == clock_gettime(CLOCK_REALTIME, &start_time)) in restart()
165 if (-1 == clock_gettime(CLOCK_REALTIME, &now)) in elapsed()
183 if (-1 == clock_getres(CLOCK_REALTIME, &resolution)) in elapsed_min()
241 if (-1 == clock_gettime(CLOCK_REALTIME, &now)) in now()
250 else if (-1 == clock_gettime(CLOCK_REALTIME, &start_time)) in restart()
259 if (-1 == clock_gettime(CLOCK_REALTIME, &now)) in elapsed()
283 if (-1 == clock_getres(CLOCK_REALTIME, &resolution)) in elapsed_min()
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/timer_settime/
D6-1.c72 if (timer_create(CLOCK_REALTIME, &ev, &tid) != 0) { in main()
88 if (clock_gettime(CLOCK_REALTIME, &tsbefore) != 0) { in main()
103 if (clock_gettime(CLOCK_REALTIME, &tsafter) != 0) { in main()
129 if (clock_gettime(CLOCK_REALTIME, &tsafter) != 0) { in main()
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_mutex_timedlock/
D2-1.c117 #ifdef CLOCK_REALTIME in f1()
119 rc = clock_gettime(CLOCK_REALTIME, &ts); in f1()
143 #ifdef CLOCK_REALTIME in f1()
144 rc = clock_gettime(CLOCK_REALTIME, &ts); in f1()
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/clock_nanosleep/
D1-1.c23 if (clock_gettime(CLOCK_REALTIME, &tsbefore) != 0) { in main()
30 if (clock_nanosleep(CLOCK_REALTIME, 0, &tssleep, NULL) != 0) { in main()
35 if (clock_gettime(CLOCK_REALTIME, &tsafter) == -1) { in main()
D2-1.c30 if (clock_gettime(CLOCK_REALTIME, &tsbefore) != 0) { in main()
40 if (clock_nanosleep(CLOCK_REALTIME, flags, &tssleep, NULL) != 0) { in main()
45 if (clock_gettime(CLOCK_REALTIME, &tsafter) == -1) { in main()
D3-1.c31 if (clock_gettime(CLOCK_REALTIME, &tsbefore) != 0) { in main()
41 if (clock_nanosleep(CLOCK_REALTIME, flags, &tssleep, NULL) != 0) { in main()
46 if (clock_gettime(CLOCK_REALTIME, &tsafter) == -1) { in main()
D1-4.c26 if (clock_gettime(CLOCK_REALTIME, &tsbefore) != 0) { in main()
35 clock_nanosleep(CLOCK_REALTIME, 0, &tssleep, NULL); in main()
51 if (clock_gettime(CLOCK_REALTIME, &tsafter) != 0) { in main()
D2-3.c29 if (clock_gettime(CLOCK_REALTIME, &tsbefore) != 0) { in main()
44 clock_nanosleep(CLOCK_REALTIME, flags, &tssleep, NULL); in main()
60 if (clock_gettime(CLOCK_REALTIME, &tsafter) != 0) { in main()
/third_party/musl/libc-test/src/functionalext/supplement/thread/
Dpthread_rwlock_timedrdlock.c32 clock_gettime(CLOCK_REALTIME, &ts); in pthread_rwlock_timedrdlock_0100()
58 clock_gettime(CLOCK_REALTIME, &ts); in pthread_rwlock_timedrdlock_0200()
82 clock_gettime(CLOCK_REALTIME, &ts); in pthread_rwlock_timedrdlock_0300()
104 clock_gettime(CLOCK_REALTIME, &ts); in pthread_rwlock_timedrdlock_time64_0100()
Dpthread_rwlock_timedwrlock.c32 clock_gettime(CLOCK_REALTIME, &ts); in pthread_rwlock_timedwrlock_0100()
58 clock_gettime(CLOCK_REALTIME, &ts); in pthread_rwlock_timedwrlock_0200()
82 clock_gettime(CLOCK_REALTIME, &ts); in pthread_rwlock_timedwrlock_0300()
104 clock_gettime(CLOCK_REALTIME, &ts); in pthread_rwlock_timedwrlock_time64_0100()

12345678910>>...13