Home
last modified time | relevance | path

Searched refs:CLOCK_MONOTONIC (Results 1 – 25 of 147) sorted by relevance

123456

/freebsd/contrib/netbsd-tests/lib/librt/
H A Dt_sem.c312 ATF_REQUIRE_MSG(clock_gettime(CLOCK_MONOTONIC, &ts) == 0, in ATF_TC_BODY()
315 SEM_REQUIRE(sem_clockwait_np(&sem, CLOCK_MONOTONIC, TIMER_ABSTIME, in ATF_TC_BODY()
318 sem_clockwait_np(&sem, CLOCK_MONOTONIC, TIMER_ABSTIME, &ts, NULL)); in ATF_TC_BODY()
338 SEM_REQUIRE(sem_clockwait_np(&sem, CLOCK_MONOTONIC, 0, in ATF_TC_BODY()
341 sem_clockwait_np(&sem, CLOCK_MONOTONIC, 0, &ts, NULL)); in ATF_TC_BODY()
366 ATF_REQUIRE_MSG(clock_gettime(CLOCK_MONOTONIC, &ts) == 0, in ATF_TC_BODY()
369 ATF_REQUIRE_EQ(-1, sem_clockwait_np(&sem, CLOCK_MONOTONIC, in ATF_TC_BODY()
401 ATF_REQUIRE_EQ(-1, sem_clockwait_np(&sem, CLOCK_MONOTONIC, 0, &ts, in ATF_TC_BODY()
/freebsd/contrib/netbsd-tests/lib/libc/sys/
H A Dt_timer_create.c221 timer_signal_create(CLOCK_MONOTONIC, false); in ATF_TC_BODY()
249 timer_signal_create(CLOCK_MONOTONIC, true); in ATF_TC_BODY()
278 timer_thread_create(CLOCK_MONOTONIC, false); in ATF_TC_BODY()
306 timer_thread_create(CLOCK_MONOTONIC, true); in ATF_TC_BODY()
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_nanosleep.c82 ATF_REQUIRE(clock_gettime(CLOCK_MONOTONIC, &ts1) == 0); in ATF_TC_BODY()
84 ATF_REQUIRE(clock_gettime(CLOCK_MONOTONIC, &ts2) == 0); in ATF_TC_BODY()
/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/libfido2/openbsd-compat/
H A Dtime.h17 #ifndef CLOCK_MONOTONIC
18 #define CLOCK_MONOTONIC CLOCK_REALTIME macro
H A Dclock_gettime.c18 if (clock_id != CLOCK_MONOTONIC) { in clock_gettime()
/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/bin/dd/
H A Dmisc.c59 if (clock_gettime(CLOCK_MONOTONIC, &end)) in secs_elapsed()
61 if (clock_getres(CLOCK_MONOTONIC, &ts_res)) in secs_elapsed()
/freebsd/contrib/openbsm/bin/auditdistd/
H A Dsynch.h146 error = pthread_condattr_setclock(&attr, CLOCK_MONOTONIC); in cv_init()
174 error = clock_gettime(CLOCK_MONOTONIC, &ts); in cv_timedwait()
/freebsd/sbin/hastd/
H A Dsynch.h145 error = pthread_condattr_setclock(&attr, CLOCK_MONOTONIC); in cv_init()
172 error = clock_gettime(CLOCK_MONOTONIC, &ts); in cv_timedwait()
/freebsd/usr.bin/mkuzip/
H A Dmkuz_time.c39 if (clock_gettime(CLOCK_MONOTONIC, &tp) == -1) in getdtime()
/freebsd/contrib/xz/src/common/
H A Dmythread.h236 if (clock_gettime(CLOCK_MONOTONIC, &ts) == 0 in mythread_cond_init()
239 &condattr, CLOCK_MONOTONIC); in mythread_cond_init()
246 mycond->clk_id = CLOCK_MONOTONIC; in mythread_cond_init()
/freebsd/lib/libc/gen/
H A Dtimespec_get.c48 if (clock_gettime(CLOCK_MONOTONIC, ts) == -1) in timespec_get()
H A Dtimespec_getres.c19 if (clock_getres(CLOCK_MONOTONIC, ts) == 0) in timespec_getres()
H A Dtimes.c58 if (clock_gettime(CLOCK_MONOTONIC, &t)) in times()
/freebsd/contrib/wpa/src/utils/
H A Dos_unix.c81 #elif defined(CLOCK_MONOTONIC) in os_get_reltime()
82 static clockid_t clock_id = CLOCK_MONOTONIC; in os_get_reltime()
102 clock_id = CLOCK_MONOTONIC; in os_get_reltime()
105 #ifdef CLOCK_MONOTONIC in os_get_reltime()
106 case CLOCK_MONOTONIC: in os_get_reltime()
/freebsd/usr.sbin/rpc.tlsservd/
H A Drpc.tlscommon.c72 clock_gettime(CLOCK_MONOTONIC, &tp); in rpctls_svc_run()
85 clock_gettime(CLOCK_MONOTONIC, &tp); in rpctls_svc_run()
/freebsd/tests/sys/audit/
H A Dutils.c150 ATF_REQUIRE_EQ(0, clock_gettime(CLOCK_MONOTONIC, &endtime)); in check_auditpipe()
156 ATF_REQUIRE_EQ(0, clock_gettime(CLOCK_MONOTONIC, &currtime)); in check_auditpipe()
/freebsd/contrib/libfido2/examples/
H A Dselect.c115 if (clock_gettime(CLOCK_MONOTONIC, &ts_start) != 0) { in select_dev()
150 if (clock_gettime(CLOCK_MONOTONIC, &ts_now) != 0) { in select_dev()
/freebsd/contrib/arm-optimized-routines/string/include/
H A Dbenchlib.h16 clock_gettime (CLOCK_MONOTONIC, &ts); in clock_get_ns()
/freebsd/sys/sys/
H A D_clock_id.h56 #define CLOCK_MONOTONIC 4 macro
/freebsd/contrib/ntp/sntp/libevent/
H A Devutil_time.c334 if (!fallback && clock_gettime(CLOCK_MONOTONIC, &ts) == 0) { in evutil_configure_monotonic_time_()
335 base->monotonic_clock = CLOCK_MONOTONIC; in evutil_configure_monotonic_time_()
339 if (CLOCK_MONOTONIC < 0) { in evutil_configure_monotonic_time_()
H A Dtime-internal.h46 #if defined(EVENT__HAVE_CLOCK_GETTIME) && defined(CLOCK_MONOTONIC)
/freebsd/contrib/libevent/
H A Devutil_time.c334 if (!fallback && clock_gettime(CLOCK_MONOTONIC, &ts) == 0) { in evutil_configure_monotonic_time_()
335 base->monotonic_clock = CLOCK_MONOTONIC; in evutil_configure_monotonic_time_()
339 if (CLOCK_MONOTONIC < 0) { in evutil_configure_monotonic_time_()

123456