Searched refs:CLOCK_MONOTONIC (Results 1 - 25 of 59) sorted by relevance

123

/freebsd-11-stable/contrib/gcclibs/libgomp/config/posix/
H A Dtime.c53 # ifdef CLOCK_MONOTONIC
54 if (clock_gettime (CLOCK_MONOTONIC, &ts) < 0)
70 # ifdef CLOCK_MONOTONIC
71 if (clock_getres (CLOCK_MONOTONIC, &ts) < 0)
/freebsd-11-stable/usr.bin/mkuzip/
H A Dmkuz_time.c41 if (clock_gettime(CLOCK_MONOTONIC, &tp) == -1)
/freebsd-11-stable/contrib/netbsd-tests/lib/librt/
H A Dt_sem.c264 /* CLOCK_MONOTONIC, absolute */
266 ATF_REQUIRE_MSG(clock_gettime(CLOCK_MONOTONIC, &ts) == 0,
269 SEM_REQUIRE(sem_clockwait_np(&sem, CLOCK_MONOTONIC, TIMER_ABSTIME,
272 sem_clockwait_np(&sem, CLOCK_MONOTONIC, TIMER_ABSTIME, &ts, NULL));
274 /* CLOCK_MONOTONIC, relative */
278 SEM_REQUIRE(sem_clockwait_np(&sem, CLOCK_MONOTONIC, 0,
281 sem_clockwait_np(&sem, CLOCK_MONOTONIC, 0, &ts, NULL));
289 ATF_REQUIRE_MSG(clock_gettime(CLOCK_MONOTONIC, &ts) == 0,
292 ATF_REQUIRE_ERRNO(EINTR, sem_clockwait_np(&sem, CLOCK_MONOTONIC,
307 ATF_REQUIRE_ERRNO(EINTR, sem_clockwait_np(&sem, CLOCK_MONOTONIC,
[all...]
/freebsd-11-stable/contrib/ntp/sntp/libevent/
H A Dtime-internal.h46 #if defined(EVENT__HAVE_CLOCK_GETTIME) && defined(CLOCK_MONOTONIC)
H A Devutil_time.c216 monotonic clock. CLOCK_MONOTONIC is most widely supported. Linux also
219 On all platforms I'm aware of, CLOCK_MONOTONIC really is monotonic.
227 /* CLOCK_MONOTONIC exists on FreeBSD, Linux, and Solaris. You need to
251 if (!fallback && clock_gettime(CLOCK_MONOTONIC, &ts) == 0) {
252 base->monotonic_clock = CLOCK_MONOTONIC;
256 if (CLOCK_MONOTONIC < 0) {
257 event_errx(1,"I didn't expect CLOCK_MONOTONIC to be < 0");
/freebsd-11-stable/lib/libc/gen/
H A Dtimes.c63 if (clock_gettime(CLOCK_MONOTONIC, &t))
/freebsd-11-stable/contrib/xz/src/xz/
H A Dmytime.c33 // If CLOCK_MONOTONIC was available at compile time but for some
36 static clockid_t clk_id = CLOCK_MONOTONIC;
/freebsd-11-stable/contrib/netbsd-tests/lib/libc/sys/
H A Dt_sigtimedwait.c59 clock_gettime(CLOCK_MONOTONIC, &before);
61 clock_gettime(CLOCK_MONOTONIC, &after);
H A Dt_timer_create.c160 "Checks timer_create(2) with CLOCK_MONOTONIC and sigevent(3), "
166 timer_signal_create(CLOCK_MONOTONIC, false);
188 "Checks timer_create(2) with CLOCK_MONOTONIC and sigevent(3), "
194 timer_signal_create(CLOCK_MONOTONIC, true);
H A Dt_nanosleep.c82 ATF_REQUIRE(clock_gettime(CLOCK_MONOTONIC, &ts1) == 0);
84 ATF_REQUIRE(clock_gettime(CLOCK_MONOTONIC, &ts2) == 0);
/freebsd-11-stable/contrib/llvm-project/libcxx/src/
H A Dchrono.cpp12 #include <time.h> // clock_gettime, CLOCK_MONOTONIC and CLOCK_REALTIME
35 #elif !defined(_LIBCPP_WIN32API) && !defined(CLOCK_MONOTONIC)
207 #elif defined(CLOCK_MONOTONIC)
213 #error "Never use CLOCK_MONOTONIC for steady_clock::now on Apple platforms"
220 if (0 != clock_gettime(CLOCK_MONOTONIC, &tp))
221 __throw_system_error(errno, "clock_gettime(CLOCK_MONOTONIC) failed");
/freebsd-11-stable/bin/dd/
H A Dmisc.c64 if (clock_gettime(CLOCK_MONOTONIC, &end))
66 if (clock_getres(CLOCK_MONOTONIC, &ts_res))
/freebsd-11-stable/include/
H A Dtime.h106 #if !defined(CLOCK_MONOTONIC) && __POSIX_VISIBLE >= 200112
107 #define CLOCK_MONOTONIC 4 macro
118 #endif /* !defined(CLOCK_MONOTONIC) && __POSIX_VISIBLE >= 200112 */
/freebsd-11-stable/sys/compat/linuxkpi/common/include/linux/
H A Dhrtimer.h60 CTASSERT((clock) == CLOCK_MONOTONIC); \
/freebsd-11-stable/contrib/openbsm/bin/auditdistd/
H A Dsynch.h146 error = pthread_condattr_setclock(&attr, CLOCK_MONOTONIC);
174 error = clock_gettime(CLOCK_MONOTONIC, &ts);
/freebsd-11-stable/tests/sys/audit/
H A Dutils.c148 ATF_REQUIRE_EQ(0, clock_gettime(CLOCK_MONOTONIC, &endtime));
154 ATF_REQUIRE_EQ(0, clock_gettime(CLOCK_MONOTONIC, &currtime));
/freebsd-11-stable/sbin/hastd/
H A Dsynch.h147 error = pthread_condattr_setclock(&attr, CLOCK_MONOTONIC);
174 error = clock_gettime(CLOCK_MONOTONIC, &ts);
/freebsd-11-stable/lib/libthr/thread/
H A Dthr_condattr.c100 clock_id != CLOCK_MONOTONIC) {
/freebsd-11-stable/sys/compat/cloudabi/
H A Dcloudabi_clock.c46 *out = CLOCK_MONOTONIC;
/freebsd-11-stable/contrib/xz/src/common/
H A Dmythread.h118 // Clock ID (CLOCK_REALTIME or CLOCK_MONOTONIC) associated with
211 // Using CLOCK_MONOTONIC instead of the default CLOCK_REALTIME makes the
213 // is suddenly changed. Unfortunately CLOCK_MONOTONIC isn't available
215 // used if CLOCK_MONOTONIC isn't available.
229 // CLOCK_MONOTONIC really is supported using clock_gettime().
230 if (clock_gettime(CLOCK_MONOTONIC, &ts) == 0
233 &condattr, CLOCK_MONOTONIC);
240 mycond->clk_id = CLOCK_MONOTONIC;
/freebsd-11-stable/contrib/libucl/tests/
H A Dtest_speed.c51 clock_gettime (CLOCK_MONOTONIC, &ts);
/freebsd-11-stable/contrib/jemalloc/src/
H A Dnstime.c125 clock_gettime(CLOCK_MONOTONIC, &ts);
/freebsd-11-stable/lib/libc/sys/
H A D__vdso_gettimeofday.c138 case CLOCK_MONOTONIC:
/freebsd-11-stable/contrib/netbsd-tests/lib/libpthread/
H A Dt_condwait.c133 "with CLOCK_MONOTONIC");
137 cond_wait(CLOCK_MONOTONIC, "CLOCK_MONOTONIC");
/freebsd-11-stable/contrib/wpa/src/utils/
H A Dos_unix.c75 #elif defined(CLOCK_MONOTONIC)
76 static clockid_t clock_id = CLOCK_MONOTONIC;
96 clock_id = CLOCK_MONOTONIC;
99 #ifdef CLOCK_MONOTONIC
100 case CLOCK_MONOTONIC:

Completed in 144 milliseconds

123