Home
last modified time | relevance | path

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

12345678

/openbsd/regress/sys/sys/tree/rb/
H A Drb-test.c149 clock_gettime(CLOCK_THREAD_CPUTIME_ID, &start); in RB_PROTOTYPE()
184 clock_gettime(CLOCK_THREAD_CPUTIME_ID, &end); in RB_PROTOTYPE()
200 clock_gettime(CLOCK_THREAD_CPUTIME_ID, &end); in RB_PROTOTYPE()
213 clock_gettime(CLOCK_THREAD_CPUTIME_ID, &end); in RB_PROTOTYPE()
222 clock_gettime(CLOCK_THREAD_CPUTIME_ID, &end); in RB_PROTOTYPE()
256 clock_gettime(CLOCK_THREAD_CPUTIME_ID, &end); in RB_PROTOTYPE()
270 clock_gettime(CLOCK_THREAD_CPUTIME_ID, &end); in RB_PROTOTYPE()
289 clock_gettime(CLOCK_THREAD_CPUTIME_ID, &end); in RB_PROTOTYPE()
304 clock_gettime(CLOCK_THREAD_CPUTIME_ID, &end); in RB_PROTOTYPE()
326 clock_gettime(CLOCK_THREAD_CPUTIME_ID, &end); in RB_PROTOTYPE()
[all …]
H A Drbt-test.c148 clock_gettime(CLOCK_THREAD_CPUTIME_ID, &start); in main()
183 clock_gettime(CLOCK_THREAD_CPUTIME_ID, &end); in main()
199 clock_gettime(CLOCK_THREAD_CPUTIME_ID, &end); in main()
212 clock_gettime(CLOCK_THREAD_CPUTIME_ID, &end); in main()
221 clock_gettime(CLOCK_THREAD_CPUTIME_ID, &end); in main()
255 clock_gettime(CLOCK_THREAD_CPUTIME_ID, &end); in main()
269 clock_gettime(CLOCK_THREAD_CPUTIME_ID, &end); in main()
288 clock_gettime(CLOCK_THREAD_CPUTIME_ID, &end); in main()
303 clock_gettime(CLOCK_THREAD_CPUTIME_ID, &end); in main()
325 clock_gettime(CLOCK_THREAD_CPUTIME_ID, &end); in main()
[all …]
/openbsd/regress/lib/libc/timekeep/
H A 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()
H A 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/lib/libc/sys/
H A 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/regress/sys/kern/kqueue/
H A 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/sbin/isakmpd/
H A 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/regress/lib/libpthread/semaphore/sem_timedwait/
H A 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/usr.sbin/sasyncd/
H A 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/regress/sys/kern/nanosleep/
H A 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/gnu/gcc/libgomp/config/posix/
H A Dtime.c54 if (clock_gettime (CLOCK_MONOTONIC, &ts) < 0) in omp_get_wtime()
56 clock_gettime (CLOCK_REALTIME, &ts); in omp_get_wtime()
/openbsd/gnu/llvm/compiler-rt/lib/xray/tests/unit/
H A 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/usr.bin/sndiod/
H A Dfile.c284 clock_gettime(CLOCK_UPTIME, &ts0); in file_process()
296 clock_gettime(CLOCK_UPTIME, &ts1); in file_process()
386 clock_gettime(CLOCK_UPTIME, &sleepts); in file_poll()
409 clock_gettime(CLOCK_UPTIME, &ts); in file_poll()
444 if (clock_gettime(CLOCK_UPTIME, &file_ts) == -1) { in filelist_init()
/openbsd/usr.sbin/vmd/
H A Di8253.c87 clock_gettime(CLOCK_MONOTONIC, &i8253_channel[0].ts); in i8253_init()
140 clock_gettime(CLOCK_MONOTONIC, &now); in i8253_do_readback()
190 clock_gettime(CLOCK_MONOTONIC, &now); in vcpu_exit_i8253_misc()
259 clock_gettime(CLOCK_MONOTONIC, &now); in vcpu_exit_i8253()
352 clock_gettime(CLOCK_MONOTONIC, &i8253_channel[chn].ts); in i8253_reset()
/openbsd/lib/libfido2/src/
H A 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/regress/lib/libpthread/cancel/
H A 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/usr.bin/ts/
H A Dts.c108 clock_gettime(clock, &start); in main()
109 clock_gettime(CLOCK_REALTIME, &utc_offset); in main()
114 clock_gettime(clock, &now); in main()
/openbsd/games/tetris/
H A Dinput.c76 clock_gettime(CLOCK_MONOTONIC, &start); in rwait()
91 clock_gettime(CLOCK_MONOTONIC, &end); in rwait()
/openbsd/regress/lib/libpthread/pthread_cond_timedwait/
H A Dpthread_cond_timedwait.c91 CHECKe(clock_gettime(CLOCK_MONOTONIC, &begtime)); in main()
104 CHECKe(clock_gettime(CLOCK_MONOTONIC, &endtime)); in main()
/openbsd/regress/sys/kern/clock_gettime/
H A Dmonotonicrelapse.c93 clock_gettime(CLOCK_MONOTONIC, &before); in thread_func()
96 clock_gettime(CLOCK_MONOTONIC, &after); in thread_func()
/openbsd/regress/sys/kern/unixsockets/
H A Dunfdpassfail.c62 if (clock_gettime(CLOCK_BOOTTIME, &ts_start) <0) in main()
105 if (clock_gettime(CLOCK_BOOTTIME, &ts_now) <0) in main()
/openbsd/regress/lib/libpthread/setsockopt/3a/
H A Dsetsockopt3a.c35 CHECKe(clock_gettime(CLOCK_MONOTONIC, &t1)); in check_timeout()
37 CHECKe(clock_gettime(CLOCK_MONOTONIC, &t2)); in check_timeout()
/openbsd/usr.sbin/slaacctl/
H A 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/usr.bin/dig/lib/isc/
H A 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/gnu/llvm/libcxx/src/
H A 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()

12345678