/freebsd/sys/contrib/openzfs/config/ |
H A D | user-clock_gettime.m4 | 2 dnl # Check if librt is required for clock_gettime. 3 dnl # clock_gettime is generally available in libc on modern systems. 6 AC_CHECK_FUNC([clock_gettime], [], [ 7 AC_CHECK_LIB([rt], [clock_gettime], [ 9 AC_MSG_FAILURE([*** clock_gettime is missing in libc and librt])
|
/freebsd/contrib/netbsd-tests/lib/libpthread/ |
H A D | t_rwlock.c | 100 ATF_REQUIRE_EQ_MSG(clock_gettime(CLOCK_REALTIME, &to), 0, in ATF_TC_BODY() 109 ATF_REQUIRE_EQ_MSG(clock_gettime(CLOCK_REALTIME, &to), 0, in ATF_TC_BODY() 114 ATF_REQUIRE_EQ_MSG(clock_gettime(CLOCK_REALTIME, &to), 0, in ATF_TC_BODY()
|
H A D | t_condwait.c | 68 ATF_REQUIRE_EQ(clock_gettime(clck, &ts), 0); in run() 80 ATF_REQUIRE_EQ(clock_gettime(clck, &te), 0); in run()
|
/freebsd/lib/libc/gen/ |
H A D | timespec_get.c | 44 if (clock_gettime(CLOCK_REALTIME, ts) == -1) in timespec_get() 48 if (clock_gettime(CLOCK_MONOTONIC, ts) == -1) in timespec_get()
|
/freebsd/tools/tools/netrate/juggle/ |
H A D | juggle.c | 238 if (clock_gettime(CLOCK_REALTIME, &tstart) < 0) in juggle() 262 if (clock_gettime(CLOCK_REALTIME, &tfinish) < 0) in juggle() 340 if (clock_gettime(CLOCK_REALTIME, &tstart) < 0) in thread_juggle() 355 if (clock_gettime(CLOCK_REALTIME, &tfinish) < 0) in thread_juggle() 413 if (clock_gettime(CLOCK_REALTIME, &tstart) < 0) in process_juggle() 436 if (clock_gettime(CLOCK_REALTIME, &tfinish) < 0) in process_juggle()
|
/freebsd/contrib/nvi/common/ |
H A D | util.c | 323 (void)clock_gettime(CLOCK_MONOTONIC_FAST, ts); 325 (void)clock_gettime(CLOCK_MONOTONIC, ts); 353 (void)clock_gettime(CLOCK_REALTIME_FAST, ts); 355 (void)clock_gettime(CLOCK_REALTIME, ts);
|
/freebsd/contrib/netbsd-tests/lib/librt/ |
H A D | t_sem.c | 254 ATF_REQUIRE_MSG(clock_gettime(CLOCK_REALTIME, &ts) == 0, in ATF_TC_BODY() 270 ATF_REQUIRE_MSG(clock_gettime(CLOCK_REALTIME, &ts) == 0, in ATF_TC_BODY() 288 ATF_REQUIRE_MSG(clock_gettime(CLOCK_REALTIME, &ts) == 0, in ATF_TC_BODY() 312 ATF_REQUIRE_MSG(clock_gettime(CLOCK_MONOTONIC, &ts) == 0, in ATF_TC_BODY() 366 ATF_REQUIRE_MSG(clock_gettime(CLOCK_MONOTONIC, &ts) == 0, in ATF_TC_BODY()
|
/freebsd/tools/regression/sockets/unix_cmsg/ |
H A D | uc_check_time.c | 64 if (clock_gettime(CLOCK_REALTIME, &ct) < 0) in uc_check_timespec_real() 78 if (clock_gettime(CLOCK_MONOTONIC, &ct) < 0) in uc_check_timespec_mono()
|
/freebsd/contrib/libfido2/src/ |
H A D | time.c | 35 if (clock_gettime(CLOCK_MONOTONIC, ts_now) != 0) { in fido_time_now() 52 if (clock_gettime(CLOCK_MONOTONIC, &ts_end) != 0) { in fido_time_delta()
|
/freebsd/tools/test/stress2/misc/ |
H A D | nanosleep.sh | 68 clock_gettime(CLOCK_REALTIME_PRECISE, &start); 71 clock_gettime(CLOCK_REALTIME_PRECISE, &finish);
|
H A D | sched.sh | 118 clock_gettime(CLOCK_REALTIME_PRECISE, &start); 129 clock_gettime(CLOCK_REALTIME_PRECISE, &finish);
|
/freebsd/libexec/talkd/ |
H A D | table.c | 82 clock_gettime(CLOCK_MONOTONIC_FAST, &ts); in find_match() 116 clock_gettime(CLOCK_MONOTONIC_FAST, &ts); in find_request() 154 clock_gettime(CLOCK_MONOTONIC_FAST, &ts); in insert_table()
|
/freebsd/lib/libc/tests/gen/ |
H A D | glob2_test.c | 74 clock_gettime(CLOCK_REALTIME, &t); in ATF_TC_BODY() 90 clock_gettime(CLOCK_REALTIME, &t2); in ATF_TC_BODY()
|
/freebsd/contrib/llvm-project/libcxx/src/ |
H A D | chrono.cpp | 121 if (0 != clock_gettime(CLOCK_REALTIME, &tp)) 165 if (0 != clock_gettime(CLOCK_MONOTONIC_RAW, &tp)) in __libcpp_steady_clock_now() 219 if (0 != clock_gettime(CLOCK_MONOTONIC, &tp)) in __libcpp_steady_clock_now()
|
/freebsd/usr.bin/truss/ |
H A D | setup.c | 502 clock_gettime(CLOCK_REALTIME, &t->before); in enter_syscall() 521 clock_gettime(CLOCK_REALTIME, &t->after); in thread_exit_syscall() 540 clock_gettime(CLOCK_REALTIME, &t->after); in exit_syscall() 627 clock_gettime(CLOCK_REALTIME, &t->after); in report_thread_death() 638 clock_gettime(CLOCK_REALTIME, &t->after); in report_thread_birth() 650 clock_gettime(CLOCK_REALTIME, &t->after); in report_exit() 667 clock_gettime(CLOCK_REALTIME, &t->after); in report_new_child() 734 clock_gettime(CLOCK_REALTIME, &t->after); in report_signal()
|
/freebsd/contrib/netbsd-tests/lib/libc/sys/ |
H A D | t_sigtimedwait.c | 59 clock_gettime(CLOCK_MONOTONIC, &before); in ATF_TC_BODY() 61 clock_gettime(CLOCK_MONOTONIC, &after); in ATF_TC_BODY()
|
H A D | t_clock_gettime.c | 100 CL(clock_gettime(CLOCK_REALTIME, &tsa)); in check_timecounter() 109 CL(clock_gettime(CLOCK_REALTIME, &tsb)); in check_timecounter()
|
/freebsd/tools/tools/netrate/netsend/ |
H A D | netsend.c | 107 if (clock_gettime(CLOCK_REALTIME, &curtime) == -1) { in wait_time() 118 if (clock_gettime(CLOCK_REALTIME, &curtime) == -1) { in wait_time() 172 if (clock_gettime(CLOCK_REALTIME, &starttime) == -1) { in timing_loop() 250 if (clock_gettime(CLOCK_REALTIME, &tmptime) == -1) { in timing_loop()
|
/freebsd/contrib/llvm-project/compiler-rt/lib/scudo/standalone/ |
H A D | trusty.cpp | 23 #include <time.h> // for clock_gettime() 88 clock_gettime(CLOCK_MONOTONIC, &TS); in getMonotonicTime() 96 clock_gettime(CLOCK_MONOTONIC_COARSE, &TS); in getMonotonicTimeFast()
|
/freebsd/crypto/openssl/providers/implementations/rands/seeding/ |
H A D | rand_vxworks.c | 44 if (clock_gettime(CLOCK_REALTIME, &ts) == 0) in get_time_stamp() 57 if (clock_gettime(CLOCK_MONOTONIC, &ts) == 0) in get_timer_bits()
|
/freebsd/lib/libsys/ |
H A D | Makefile.sys | 32 SRCS+= clock_gettime.c gettimeofday.c __vdso_gettimeofday.c 54 clock_gettime \ 181 clock_gettime.2 \ 405 MLINKS+=clock_gettime.2 clock_getres.2 \ 406 clock_gettime.2 clock_settime.2
|
/freebsd/usr.bin/grdc/ |
H A D | grdc.c | 148 clock_gettime(CLOCK_REALTIME_FAST, &now); in main() 220 clock_gettime(CLOCK_REALTIME_FAST, &now); in main() 230 clock_gettime(CLOCK_REALTIME_FAST, &now); in main()
|
/freebsd/usr.bin/time/ |
H A D | time.c | 110 if (clock_gettime(CLOCK_MONOTONIC, &before_ts)) in main() 130 if (clock_gettime(CLOCK_MONOTONIC, &after)) in main() 136 if (clock_gettime(CLOCK_MONOTONIC, &after)) in main()
|
/freebsd/tools/tools/netrate/netblast/ |
H A D | netblast.c | 83 if (clock_gettime(CLOCK_REALTIME, &starttime) == -1) { in blast_loop() 120 if (clock_gettime(CLOCK_REALTIME, &tmptime) == -1) { in blast_loop()
|
/freebsd/usr.sbin/rtadvd/ |
H A D | timer.c | 160 clock_gettime(CLOCK_MONOTONIC_FAST, &now); in rtadvd_check_timer() 190 clock_gettime(CLOCK_MONOTONIC_FAST, &now); in rtadvd_set_timer()
|