Home
last modified time | relevance | path

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

12345678910>>...13

/freebsd/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/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/lib/libc/gen/
H A Dtimespec_get.c44 if (clock_gettime(CLOCK_REALTIME, ts) == -1) in timespec_get()
48 if (clock_gettime(CLOCK_MONOTONIC, ts) == -1) in timespec_get()
/freebsd/tools/regression/sockets/unix_cmsg/
H A Duc_check_time.c64 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/tools/tools/netrate/juggle/
H A Djuggle.c238 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 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/contrib/libfido2/src/
H A Dtime.c35 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/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/tools/test/stress2/misc/
H A Dnanosleep.sh68 clock_gettime(CLOCK_REALTIME_PRECISE, &start);
71 clock_gettime(CLOCK_REALTIME_PRECISE, &finish);
H A Dsched.sh118 clock_gettime(CLOCK_REALTIME_PRECISE, &start);
129 clock_gettime(CLOCK_REALTIME_PRECISE, &finish);
/freebsd/lib/libc/tests/gen/
H A Dglob2_test.c74 clock_gettime(CLOCK_REALTIME, &t); in ATF_TC_BODY()
90 clock_gettime(CLOCK_REALTIME, &t2); in ATF_TC_BODY()
/freebsd/libexec/talkd/
H A Dtable.c82 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/contrib/xz/src/xz/
H A Dmytime.c77 while (clock_gettime(clk_id, &tv)) in mytime_now()
80 clock_gettime(CLOCK_REALTIME, &tv); in mytime_now()
/freebsd/contrib/llvm-project/libcxx/src/
H A Dchrono.cpp121 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/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/crypto/openssl/providers/implementations/rands/seeding/
H A Drand_vxworks.c44 if (clock_gettime(CLOCK_REALTIME, &ts) == 0) in get_time_stamp()
57 if (clock_gettime(CLOCK_MONOTONIC, &ts) == 0) in get_timer_bits()
/freebsd/usr.bin/truss/
H A Dsetup.c502 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/tools/tools/netrate/netsend/
H A Dnetsend.c107 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 Dtrusty.cpp88 clock_gettime(CLOCK_MONOTONIC, &TS); in getMonotonicTime()
96 clock_gettime(CLOCK_MONOTONIC_COARSE, &TS); in getMonotonicTimeFast()
/freebsd/usr.bin/grdc/
H A Dgrdc.c148 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/lib/libsys/
H A DMakefile.sys32 SRCS+= clock_gettime.c gettimeofday.c __vdso_gettimeofday.c
55 clock_gettime \
187 clock_gettime.2 \
406 MLINKS+=clock_gettime.2 clock_getres.2 \
407 clock_gettime.2 clock_settime.2
/freebsd/usr.bin/time/
H A Dtime.c110 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 Dnetblast.c83 if (clock_gettime(CLOCK_REALTIME, &starttime) == -1) { in blast_loop()
120 if (clock_gettime(CLOCK_REALTIME, &tmptime) == -1) { in blast_loop()

12345678910>>...13