/openbsd/regress/sys/sys/tree/rb/ |
H A D | rb-test.c | 149 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 D | rbt-test.c | 148 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 D | test_clock_gettime.c | 28 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 D | test_time_skew.c | 36 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 D | w_clock_gettime.c | 23 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 D | kqueue-timer.c | 105 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 D | timer.c | 55 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 D | sem_timedwait.c | 41 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 D | timer.c | 76 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 D | nanosleep.c | 151 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 D | time.c | 54 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 D | fdr_controller_test.cpp | 58 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 D | file.c | 284 clock_gettime(CLOCK_UPTIME, &ts0); in file_process() 303 clock_gettime(CLOCK_UPTIME, &ts1); in file_process() 402 clock_gettime(CLOCK_UPTIME, &sleepts); in file_poll() 425 clock_gettime(CLOCK_UPTIME, &ts); in file_poll() 460 if (clock_gettime(CLOCK_UPTIME, &file_ts) == -1) { in filelist_init()
|
/openbsd/usr.sbin/vmd/ |
H A D | i8253.c | 84 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/lib/libfido2/src/ |
H A D | time.c | 34 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 D | cancel.c | 99 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 D | ts.c | 108 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 D | input.c | 76 clock_gettime(CLOCK_MONOTONIC, &start); in rwait() 91 clock_gettime(CLOCK_MONOTONIC, &end); in rwait()
|
/openbsd/regress/lib/libpthread/pthread_cond_timedwait/ |
H A D | pthread_cond_timedwait.c | 91 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 D | monotonicrelapse.c | 93 clock_gettime(CLOCK_MONOTONIC, &before); in thread_func() 96 clock_gettime(CLOCK_MONOTONIC, &after); in thread_func()
|
/openbsd/regress/sys/kern/unixsockets/ |
H A D | unfdpassfail.c | 62 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 D | setsockopt3a.c | 35 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 D | slaacctl.c | 218 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 D | timer.c | 186 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 D | chrono.cpp | 123 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()
|