Home
last modified time | relevance | path

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

12345678910

/freebsd-13.1/sys/contrib/openzfs/config/
H A Duser-clock_gettime.m42 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 Dt_rwlock.c100 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 Dt_condwait.c68 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 Djuggle.c240 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 Duc_check_time.c66 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 Dutil.c323 (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 Dt_sem.c254 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 Dglob2_test.c77 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 Dtable.c90 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 Dchrono.cpp92 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 Dlinux_locore.asm39 .weak clock_gettime
40 .set clock_gettime, __vdso_clock_gettime define
/freebsd-13.1/contrib/netbsd-tests/lib/libc/sys/
H A Dt_sigtimedwait.c59 clock_gettime(CLOCK_MONOTONIC, &before); in ATF_TC_BODY()
61 clock_gettime(CLOCK_MONOTONIC, &after); in ATF_TC_BODY()
H A Dt_clock_gettime.c100 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 Dsetup.c522 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 Dnetsend.c109 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 Dgrdc.c142 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 DMakefile.inc28 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 Dtime.c124 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 Dnetblast.c85 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 Dtimer.c163 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 Devutil_time.c245 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 Dmkuz_time.c41 if (clock_gettime(CLOCK_MONOTONIC, &tp) == -1) in getdtime()
/freebsd-13.1/contrib/libevent/
H A Devutil_time.c283 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 Dtimespec_get.c46 if (clock_gettime(CLOCK_REALTIME, ts) == -1) in timespec_get()
/freebsd-13.1/contrib/jemalloc/src/
H A Dnstime.c119 clock_gettime(CLOCK_MONOTONIC_COARSE, &ts); in nstime_get()
128 clock_gettime(CLOCK_MONOTONIC, &ts); in nstime_get()

12345678910