Home
last modified time | relevance | path

Searched refs:clock_gettime (Results 1 – 25 of 195) sorted by relevance

12345678

/openbsd/src/regress/sys/sys/tree/rb/
Drbt-test.c148 clock_gettime(CLOCK_THREAD_CPUTIME_ID, &start); in main()
183 clock_gettime(CLOCK_THREAD_CPUTIME_ID, &end); in main()
197 clock_gettime(CLOCK_THREAD_CPUTIME_ID, &start); in main()
199 clock_gettime(CLOCK_THREAD_CPUTIME_ID, &end); in main()
210 clock_gettime(CLOCK_THREAD_CPUTIME_ID, &start); in main()
212 clock_gettime(CLOCK_THREAD_CPUTIME_ID, &end); in main()
219 clock_gettime(CLOCK_THREAD_CPUTIME_ID, &start); in main()
221 clock_gettime(CLOCK_THREAD_CPUTIME_ID, &end); in main()
236 clock_gettime(CLOCK_THREAD_CPUTIME_ID, &start); in main()
255 clock_gettime(CLOCK_THREAD_CPUTIME_ID, &end); in main()
[all …]
Drb-test.c149 clock_gettime(CLOCK_THREAD_CPUTIME_ID, &start); in RB_PROTOTYPE()
184 clock_gettime(CLOCK_THREAD_CPUTIME_ID, &end); in RB_PROTOTYPE()
198 clock_gettime(CLOCK_THREAD_CPUTIME_ID, &start); in RB_PROTOTYPE()
200 clock_gettime(CLOCK_THREAD_CPUTIME_ID, &end); in RB_PROTOTYPE()
211 clock_gettime(CLOCK_THREAD_CPUTIME_ID, &start); in RB_PROTOTYPE()
213 clock_gettime(CLOCK_THREAD_CPUTIME_ID, &end); in RB_PROTOTYPE()
220 clock_gettime(CLOCK_THREAD_CPUTIME_ID, &start); in RB_PROTOTYPE()
222 clock_gettime(CLOCK_THREAD_CPUTIME_ID, &end); in RB_PROTOTYPE()
237 clock_gettime(CLOCK_THREAD_CPUTIME_ID, &start); in RB_PROTOTYPE()
256 clock_gettime(CLOCK_THREAD_CPUTIME_ID, &end); in RB_PROTOTYPE()
[all …]
/openbsd/src/regress/lib/libc/timekeep/
Dtest_clock_gettime.c28 ASSERT_EQ(0, clock_gettime(CLOCK_REALTIME, &tp)); in check()
29 ASSERT_EQ(0, clock_gettime(CLOCK_MONOTONIC, &tp)); in check()
30 ASSERT_EQ(0, clock_gettime(CLOCK_BOOTTIME, &tp)); in check()
31 ASSERT_EQ(0, clock_gettime(CLOCK_UPTIME, &tp)); in check()
34 ASSERT_EQ(0, clock_gettime(CLOCK_PROCESS_CPUTIME_ID, &tp)); in check()
35 ASSERT_EQ(0, clock_gettime(CLOCK_THREAD_CPUTIME_ID, &tp)); in check()
Dtest_time_skew.c36 ASSERT_EQ(0, clock_gettime(CLOCK_MONOTONIC, &tp1)); in check()
40 ASSERT_EQ(0, clock_gettime(CLOCK_MONOTONIC, &tp2)); in check()
/openbsd/src/lib/libc/sys/
Dw_clock_gettime.c23 WRAP(clock_gettime)(clockid_t clock_id, struct timespec *tp) in WRAP() argument
29 return clock_gettime(clock_id, tp); in WRAP()
43 return clock_gettime(clock_id, tp); in WRAP()
47 return clock_gettime(clock_id, tp); in WRAP()
51 DEF_WRAP(clock_gettime);
/openbsd/src/regress/sys/kern/kqueue/
Dkqueue-timer.c105 clock_gettime(CLOCK_MONOTONIC, &start); in do_timer()
107 clock_gettime(CLOCK_REALTIME, &now); in do_timer()
140 clock_gettime(CLOCK_MONOTONIC, &end); in do_timer()
148 clock_gettime(CLOCK_MONOTONIC, &start); in do_timer()
155 clock_gettime(CLOCK_REALTIME, &now); in do_timer()
180 clock_gettime(CLOCK_MONOTONIC, &end); in do_timer()
267 clock_gettime(CLOCK_MONOTONIC, &start); in do_reset_timer()
303 clock_gettime(CLOCK_MONOTONIC, &end); in do_reset_timer()
/openbsd/src/sbin/isakmpd/
Dtimer.c55 clock_gettime(CLOCK_MONOTONIC, &now); in timer_next_event()
71 clock_gettime(CLOCK_MONOTONIC, &now); in timer_handle_expirations()
97 clock_gettime(CLOCK_MONOTONIC, &now); in timer_add_event()
133 clock_gettime(CLOCK_MONOTONIC, &now); in timer_report()
/openbsd/src/regress/lib/libpthread/semaphore/sem_timedwait/
Dsem_timedwait.c41 CHECKr(clock_gettime(CLOCK_REALTIME, &ts)); in main()
80 CHECKr(clock_gettime(CLOCK_REALTIME, &ts)); in main()
84 CHECKr(clock_gettime(CLOCK_REALTIME, &ts2)); in main()
118 CHECKr(clock_gettime(CLOCK_REALTIME, &ts)); in waiter()
/openbsd/src/usr.sbin/sasyncd/
Dtimer.c76 clock_gettime(CLOCK_MONOTONIC, &now); in timer_next_event()
97 clock_gettime(CLOCK_MONOTONIC, &now); in timer_run()
129 clock_gettime(CLOCK_MONOTONIC, &now); in timer_add()
/openbsd/src/regress/sys/kern/nanosleep/
Dnanosleep.c151 if (clock_gettime(CLOCK_MONOTONIC, &start) < 0) { in time_elapsed()
161 if (clock_gettime(CLOCK_MONOTONIC, &end) < 0) { in time_elapsed()
202 if (clock_gettime(CLOCK_MONOTONIC, &start) < 0) { in time_elapsed_with_signal()
216 if (clock_gettime(CLOCK_MONOTONIC, &end) < 0) { in time_elapsed_with_signal()
/openbsd/src/gnu/llvm/compiler-rt/lib/xray/tests/unit/
Dfdr_controller_test.cpp58 C = std::make_unique<FDRController<>>(BQ.get(), B, *W, clock_gettime, 0); in SetUp()
106 C = std::make_unique<FDRController<>>(BQ.get(), B, *W, clock_gettime, 1000); in TEST_F()
121 C = std::make_unique<FDRController<>>(BQ.get(), B, *W, clock_gettime, 1000); in TEST_F()
141 C = std::make_unique<FDRController<>>(BQ.get(), B, *W, clock_gettime, 1000); in TEST_F()
166 C = std::make_unique<FDRController<>>(BQ.get(), B, *W, clock_gettime, 1000); in TEST_F()
190 C = std::make_unique<FDRController<>>(BQ.get(), B, *W, clock_gettime, 1000); in TEST_F()
217 C = std::make_unique<FDRController<>>(BQ.get(), B, *W, clock_gettime, 1000); in TEST_F()
251 C = std::make_unique<FDRController<>>(BQ.get(), B, *W, clock_gettime, 1000); in TEST_F()
312 C = std::make_unique<FDRController<>>(BQ.get(), B, *W, clock_gettime, 0); in SetUp()
/openbsd/src/gnu/gcc/libgomp/config/posix/
Dtime.c54 if (clock_gettime (CLOCK_MONOTONIC, &ts) < 0) in omp_get_wtime()
56 clock_gettime (CLOCK_REALTIME, &ts); in omp_get_wtime()
/openbsd/src/usr.sbin/vmd/
Di8253.c84 clock_gettime(CLOCK_MONOTONIC, &i8253_channel[0].ts); in i8253_init()
137 clock_gettime(CLOCK_MONOTONIC, &now); in i8253_do_readback()
187 clock_gettime(CLOCK_MONOTONIC, &now); in vcpu_exit_i8253_misc()
256 clock_gettime(CLOCK_MONOTONIC, &now); in vcpu_exit_i8253()
349 clock_gettime(CLOCK_MONOTONIC, &i8253_channel[chn].ts); in i8253_reset()
/openbsd/src/usr.bin/sndiod/
Dfile.c257 clock_gettime(CLOCK_UPTIME, &ts0); in file_process()
276 clock_gettime(CLOCK_UPTIME, &ts1); in file_process()
378 clock_gettime(CLOCK_UPTIME, &sleepts); in file_poll()
401 clock_gettime(CLOCK_UPTIME, &ts); in file_poll()
434 if (clock_gettime(CLOCK_UPTIME, &file_ts) == -1) { in filelist_init()
/openbsd/src/lib/libfido2/src/
Dtime.c34 if (clock_gettime(CLOCK_MONOTONIC, ts_now) != 0) { in fido_time_now()
51 if (clock_gettime(CLOCK_MONOTONIC, &ts_end) != 0) { in fido_time_delta()
/openbsd/src/regress/lib/libpthread/cancel/
Dcancel.c99 CHECKe(clock_gettime(CLOCK_REALTIME, &end)); in child2fn()
103 CHECKe(clock_gettime(CLOCK_REALTIME, &now)); in child2fn()
195 CHECKe(clock_gettime(CLOCK_REALTIME, &expiretime)); in main()
/openbsd/src/games/tetris/
Dinput.c76 clock_gettime(CLOCK_MONOTONIC, &start); in rwait()
91 clock_gettime(CLOCK_MONOTONIC, &end); in rwait()
/openbsd/src/regress/sys/kern/clock_gettime/
Dmonotonicrelapse.c93 clock_gettime(CLOCK_MONOTONIC, &before); in thread_func()
96 clock_gettime(CLOCK_MONOTONIC, &after); in thread_func()
/openbsd/src/regress/lib/libpthread/pthread_cond_timedwait/
Dpthread_cond_timedwait.c91 CHECKe(clock_gettime(CLOCK_MONOTONIC, &begtime)); in main()
104 CHECKe(clock_gettime(CLOCK_MONOTONIC, &endtime)); in main()
/openbsd/src/regress/lib/libpthread/setsockopt/3a/
Dsetsockopt3a.c35 CHECKe(clock_gettime(CLOCK_MONOTONIC, &t1)); in check_timeout()
37 CHECKe(clock_gettime(CLOCK_MONOTONIC, &t2)); in check_timeout()
/openbsd/src/usr.sbin/slaacctl/
Dslaacctl.c218 if (clock_gettime(CLOCK_MONOTONIC, &now)) in show_interface_msg()
274 if (clock_gettime(CLOCK_MONOTONIC, &now)) in show_interface_msg()
317 if (clock_gettime(CLOCK_MONOTONIC, &now)) in show_interface_msg()
355 if (clock_gettime(CLOCK_MONOTONIC, &now)) in show_interface_msg()
/openbsd/src/usr.bin/dig/lib/isc/
Dtimer.c186 clock_gettime(CLOCK_MONOTONIC, &now); in isc_timer_create()
250 clock_gettime(CLOCK_MONOTONIC, &now); in isc_timer_reset()
278 clock_gettime(CLOCK_MONOTONIC, &now); in isc_timer_touch()
496 clock_gettime(CLOCK_MONOTONIC, &now); in isc_timermgr_dispatch()
/openbsd/src/usr.sbin/ntpd/
Dntp_dns.c244 clock_gettime(CLOCK_MONOTONIC, &start); in probe_root()
246 clock_gettime(CLOCK_MONOTONIC, &probe_start); in probe_root()
248 clock_gettime(CLOCK_MONOTONIC, &probe_end); in probe_root()
/openbsd/src/gnu/llvm/libcxx/src/
Dchrono.cpp123 if (0 != clock_gettime(CLOCK_REALTIME, &tp))
230 if (0 != clock_gettime(CLOCK_MONOTONIC_RAW, &tp)) in __libcpp_steady_clock_now()
288 if (0 != clock_gettime(CLOCK_MONOTONIC, &tp)) in __libcpp_steady_clock_now()
/openbsd/src/gnu/usr.bin/perl/dist/Time-HiRes/t/
Dclock.t35 skip "no clock_gettime", 1
41 my $t0 = Time::HiRes::clock_gettime(&CLOCK_REALTIME);
44 my $t1 = Time::HiRes::clock_gettime(&CLOCK_REALTIME);

12345678