| /freebsd-13.1/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-13.1/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-13.1/tools/tools/netrate/juggle/ |
| H A D | juggle.c | 240 if (clock_gettime(CLOCK_REALTIME, &tstart) < 0) in juggle() 264 if (clock_gettime(CLOCK_REALTIME, &tfinish) < 0) in juggle() 342 if (clock_gettime(CLOCK_REALTIME, &tstart) < 0) in thread_juggle() 357 if (clock_gettime(CLOCK_REALTIME, &tfinish) < 0) in thread_juggle() 415 if (clock_gettime(CLOCK_REALTIME, &tstart) < 0) in process_juggle() 438 if (clock_gettime(CLOCK_REALTIME, &tfinish) < 0) in process_juggle()
|
| /freebsd-13.1/tools/regression/sockets/unix_cmsg/ |
| H A D | uc_check_time.c | 66 if (clock_gettime(CLOCK_REALTIME, &ct) < 0) in uc_check_timespec_real() 80 if (clock_gettime(CLOCK_MONOTONIC, &ct) < 0) in uc_check_timespec_mono()
|
| /freebsd-13.1/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-13.1/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-13.1/lib/libc/tests/gen/ |
| H A D | glob2_test.c | 77 clock_gettime(CLOCK_REALTIME, &t); in ATF_TC_BODY() 93 clock_gettime(CLOCK_REALTIME, &t2); in ATF_TC_BODY()
|
| /freebsd-13.1/libexec/talkd/ |
| H A D | table.c | 90 clock_gettime(CLOCK_MONOTONIC_FAST, &ts); in find_match() 124 clock_gettime(CLOCK_MONOTONIC_FAST, &ts); in find_request() 162 clock_gettime(CLOCK_MONOTONIC_FAST, &ts); in insert_table()
|
| /freebsd-13.1/contrib/llvm-project/libcxx/src/ |
| H A D | chrono.cpp | 92 if (0 != clock_gettime(CLOCK_REALTIME, &tp)) 199 if (0 != clock_gettime(CLOCK_MONOTONIC_RAW, &tp)) in __libcpp_steady_clock_now() 246 if (0 != clock_gettime(CLOCK_MONOTONIC, &tp)) in __libcpp_steady_clock_now()
|
| /freebsd-13.1/sys/amd64/linux/ |
| H A D | linux_locore.asm | 39 .weak clock_gettime 40 .set clock_gettime, __vdso_clock_gettime define
|
| /freebsd-13.1/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-13.1/usr.bin/truss/ |
| H A D | setup.c | 522 clock_gettime(CLOCK_REALTIME, &t->before); in enter_syscall() 541 clock_gettime(CLOCK_REALTIME, &t->after); in thread_exit_syscall() 560 clock_gettime(CLOCK_REALTIME, &t->after); in exit_syscall() 647 clock_gettime(CLOCK_REALTIME, &t->after); in report_thread_death() 658 clock_gettime(CLOCK_REALTIME, &t->after); in report_thread_birth() 670 clock_gettime(CLOCK_REALTIME, &t->after); in report_exit() 687 clock_gettime(CLOCK_REALTIME, &t->after); in report_new_child() 754 clock_gettime(CLOCK_REALTIME, &t->after); in report_signal()
|
| /freebsd-13.1/tools/tools/netrate/netsend/ |
| H A D | netsend.c | 109 if (clock_gettime(CLOCK_REALTIME, &curtime) == -1) { in wait_time() 120 if (clock_gettime(CLOCK_REALTIME, &curtime) == -1) { in wait_time() 174 if (clock_gettime(CLOCK_REALTIME, &starttime) == -1) { in timing_loop() 252 if (clock_gettime(CLOCK_REALTIME, &tmptime) == -1) { in timing_loop()
|
| /freebsd-13.1/usr.bin/grdc/ |
| H A D | grdc.c | 142 clock_gettime(CLOCK_REALTIME_FAST, &now); in main() 200 clock_gettime(CLOCK_REALTIME_FAST, &now); in main() 210 clock_gettime(CLOCK_REALTIME_FAST, &now); in main()
|
| /freebsd-13.1/lib/libc/sys/ |
| H A D | Makefile.inc | 28 SRCS+= clock_gettime.c gettimeofday.c __vdso_gettimeofday.c 29 NOASM+= clock_gettime.o gettimeofday.o 176 clock_gettime.2 \ 381 MLINKS+=clock_gettime.2 clock_getres.2 \ 382 clock_gettime.2 clock_settime.2
|
| /freebsd-13.1/usr.bin/time/ |
| H A D | time.c | 124 if (clock_gettime(CLOCK_MONOTONIC, &before_ts)) in main() 144 if (clock_gettime(CLOCK_MONOTONIC, &after)) in main() 150 if (clock_gettime(CLOCK_MONOTONIC, &after)) in main()
|
| /freebsd-13.1/tools/tools/netrate/netblast/ |
| H A D | netblast.c | 85 if (clock_gettime(CLOCK_REALTIME, &starttime) == -1) { in blast_loop() 122 if (clock_gettime(CLOCK_REALTIME, &tmptime) == -1) { in blast_loop()
|
| /freebsd-13.1/usr.sbin/rtadvd/ |
| H A D | timer.c | 163 clock_gettime(CLOCK_MONOTONIC_FAST, &now); in rtadvd_check_timer() 193 clock_gettime(CLOCK_MONOTONIC_FAST, &now); in rtadvd_set_timer()
|
| /freebsd-13.1/contrib/ntp/sntp/libevent/ |
| H A D | evutil_time.c | 245 if (clock_gettime(CLOCK_MONOTONIC_COARSE, &ts) == 0) { in evutil_configure_monotonic_time_() 251 if (!fallback && clock_gettime(CLOCK_MONOTONIC, &ts) == 0) { in evutil_configure_monotonic_time_() 277 if (clock_gettime(base->monotonic_clock, &ts) == -1) in evutil_gettime_monotonic_()
|
| /freebsd-13.1/usr.bin/mkuzip/ |
| H A D | mkuz_time.c | 41 if (clock_gettime(CLOCK_MONOTONIC, &tp) == -1) in getdtime()
|
| /freebsd-13.1/contrib/libevent/ |
| H A D | evutil_time.c | 283 if (clock_gettime(CLOCK_MONOTONIC_COARSE, &ts) == 0) { in evutil_configure_monotonic_time_() 289 if (!fallback && clock_gettime(CLOCK_MONOTONIC, &ts) == 0) { in evutil_configure_monotonic_time_() 315 if (clock_gettime(base->monotonic_clock, &ts) == -1) in evutil_gettime_monotonic_()
|
| /freebsd-13.1/lib/libc/gen/ |
| H A D | timespec_get.c | 46 if (clock_gettime(CLOCK_REALTIME, ts) == -1) in timespec_get()
|
| /freebsd-13.1/contrib/jemalloc/src/ |
| H A D | nstime.c | 119 clock_gettime(CLOCK_MONOTONIC_COARSE, &ts); in nstime_get() 128 clock_gettime(CLOCK_MONOTONIC, &ts); in nstime_get()
|