Home
last modified time | relevance | path

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

1234567

/netbsd/tests/lib/libc/sys/
H A Dt_timerfd.c191 ATF_REQUIRE(clock_gettime(CLOCK_MONOTONIC, &then) == 0); in ATF_TC_BODY()
194 ATF_REQUIRE(clock_gettime(CLOCK_MONOTONIC, &now) == 0); in ATF_TC_BODY()
220 ATF_REQUIRE((fd = timerfd_create(CLOCK_MONOTONIC, in ATF_TC_BODY()
228 ATF_REQUIRE(clock_gettime(CLOCK_MONOTONIC, &then) == 0); in ATF_TC_BODY()
231 ATF_REQUIRE(clock_gettime(CLOCK_MONOTONIC, &now) == 0); in ATF_TC_BODY()
266 ATF_REQUIRE(clock_gettime(CLOCK_MONOTONIC, &then) == 0); in ATF_TC_BODY()
271 ATF_REQUIRE(clock_gettime(CLOCK_MONOTONIC, &now) == 0); in ATF_TC_BODY()
528 ATF_REQUIRE(clock_gettime(CLOCK_MONOTONIC, &now) == 0); in ATF_TC_BODY()
539 ATF_REQUIRE(clock_gettime(CLOCK_MONOTONIC, &now) == 0); in ATF_TC_BODY()
548 ATF_REQUIRE(clock_gettime(CLOCK_MONOTONIC, &now) == 0); in ATF_TC_BODY()
[all …]
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.c73 ATF_REQUIRE(clock_gettime(CLOCK_MONOTONIC, &ts1) == 0); in ATF_TC_BODY()
75 ATF_REQUIRE(clock_gettime(CLOCK_MONOTONIC, &ts2) == 0); in ATF_TC_BODY()
/netbsd/external/gpl3/gcc.old/dist/libgomp/config/posix/
H A Dtime.c51 # ifdef CLOCK_MONOTONIC in omp_get_wtime()
52 if (clock_gettime (CLOCK_MONOTONIC, &ts) < 0) in omp_get_wtime()
68 # ifdef CLOCK_MONOTONIC in omp_get_wtick()
69 if (clock_getres (CLOCK_MONOTONIC, &ts) < 0) in omp_get_wtick()
/netbsd/external/gpl3/gcc/dist/libgomp/config/posix/
H A Dtime.c51 # ifdef CLOCK_MONOTONIC in omp_get_wtime()
52 if (clock_gettime (CLOCK_MONOTONIC, &ts) < 0) in omp_get_wtime()
68 # ifdef CLOCK_MONOTONIC in omp_get_wtick()
69 if (clock_getres (CLOCK_MONOTONIC, &ts) < 0) in omp_get_wtick()
/netbsd/tests/kernel/kqueue/
H A Dt_timer.c99 ATF_REQUIRE(clock_gettime(CLOCK_MONOTONIC, &ots) == 0); in ATF_TC_BODY()
113 ATF_REQUIRE(clock_gettime(CLOCK_MONOTONIC, in ATF_TC_BODY()
131 ATF_REQUIRE(clock_gettime(CLOCK_MONOTONIC, in ATF_TC_BODY()
147 ATF_REQUIRE(clock_gettime(CLOCK_MONOTONIC, &ots) == 0); in ATF_TC_BODY()
151 ATF_REQUIRE(clock_gettime(CLOCK_MONOTONIC, &ts) == 0); in ATF_TC_BODY()
321 ATF_REQUIRE(clock_gettime(CLOCK_MONOTONIC, &ots) == 0); in do_test_timer_units()
323 ATF_REQUIRE(clock_gettime(CLOCK_MONOTONIC, &ts) == 0); in do_test_timer_units()
/netbsd/sbin/cgdconfig/
H A Dargon2_utils.c113 if (clock_gettime(CLOCK_MONOTONIC, &tp1) == -1) in argon2id_calibrate()
124 if (clock_gettime(CLOCK_MONOTONIC, &tp2) == -1) in argon2id_calibrate()
144 if (clock_gettime(CLOCK_MONOTONIC, &tp1) == -1) in argon2id_calibrate()
155 if (clock_gettime(CLOCK_MONOTONIC, &tp2) == -1) in argon2id_calibrate()
/netbsd/tests/lib/libpthread/
H A Dt_thrd.c190 ATF_REQUIRE_EQ(clock_gettime(CLOCK_MONOTONIC, &start), 0); in ATF_TC_BODY()
192 ATF_REQUIRE_EQ(clock_gettime(CLOCK_MONOTONIC, &stop), 0); in ATF_TC_BODY()
206 ATF_REQUIRE_EQ(clock_gettime(CLOCK_MONOTONIC, &start), 0); in ATF_TC_BODY()
208 ATF_REQUIRE_EQ(clock_gettime(CLOCK_MONOTONIC, &stop), 0); in ATF_TC_BODY()
H A Dt_condwait.c88 if (clck == CLOCK_MONOTONIC) in run()
134 cond_wait(CLOCK_MONOTONIC, "CLOCK_MONOTONIC"); in ATF_TC_BODY()
/netbsd/usr.bin/rump_dhcpclient/
H A Dcommon.c86 #if defined(_POSIX_MONOTONIC_CLOCK) && defined(CLOCK_MONOTONIC) in get_monotonic()
91 if (clock_gettime(CLOCK_MONOTONIC, &ts) == 0) { in get_monotonic()
92 posix_clock = CLOCK_MONOTONIC; in get_monotonic()
/netbsd/usr.sbin/rtadvd/
H A Dtimer.c105 prog_clock_gettime(CLOCK_MONOTONIC, &now); in rtadvd_set_timer()
128 prog_clock_gettime(CLOCK_MONOTONIC, &now); in rtadvd_check_timer()
161 prog_clock_gettime(CLOCK_MONOTONIC, &now); in rtadvd_timer_rest()
/netbsd/external/gpl3/gdb/dist/gdb/testsuite/gdb.threads/
H A Dia64-sigill.c57 i = clock_gettime (CLOCK_MONOTONIC, &start); in timed_mutex_lock()
67 i = clock_gettime (CLOCK_MONOTONIC, &now); in timed_mutex_lock()
205 i = clock_gettime (CLOCK_MONOTONIC, &start); in state_wait()
230 i = clock_gettime (CLOCK_MONOTONIC, &now); in state_wait()
H A Dwatchthreads-reorder.c66 i = clock_gettime (CLOCK_MONOTONIC, &start); in timed_mutex_lock()
76 i = clock_gettime (CLOCK_MONOTONIC, &now); in timed_mutex_lock()
214 i = clock_gettime (CLOCK_MONOTONIC, &start); in state_wait()
239 i = clock_gettime (CLOCK_MONOTONIC, &now); in state_wait()
H A Dsiginfo-threads.c69 i = clock_gettime (CLOCK_MONOTONIC, &start); in timed_mutex_lock()
79 i = clock_gettime (CLOCK_MONOTONIC, &now); in timed_mutex_lock()
274 i = clock_gettime (CLOCK_MONOTONIC, &start); in state_wait()
299 i = clock_gettime (CLOCK_MONOTONIC, &now); in state_wait()
/netbsd/external/gpl3/gdb.old/dist/gdb/testsuite/gdb.threads/
H A Dia64-sigill.c57 i = clock_gettime (CLOCK_MONOTONIC, &start); in timed_mutex_lock()
67 i = clock_gettime (CLOCK_MONOTONIC, &now); in timed_mutex_lock()
205 i = clock_gettime (CLOCK_MONOTONIC, &start); in state_wait()
230 i = clock_gettime (CLOCK_MONOTONIC, &now); in state_wait()
H A Dwatchthreads-reorder.c66 i = clock_gettime (CLOCK_MONOTONIC, &start); in timed_mutex_lock()
76 i = clock_gettime (CLOCK_MONOTONIC, &now); in timed_mutex_lock()
214 i = clock_gettime (CLOCK_MONOTONIC, &start); in state_wait()
239 i = clock_gettime (CLOCK_MONOTONIC, &now); in state_wait()
H A Dsiginfo-threads.c69 i = clock_gettime (CLOCK_MONOTONIC, &start); in timed_mutex_lock()
79 i = clock_gettime (CLOCK_MONOTONIC, &now); in timed_mutex_lock()
274 i = clock_gettime (CLOCK_MONOTONIC, &start); in state_wait()
299 i = clock_gettime (CLOCK_MONOTONIC, &now); in state_wait()
/netbsd/bin/sleep/
H A Dsleep.c178 if (clock_gettime(CLOCK_MONOTONIC, &now) != 0) in main()
190 if ((e = clock_nanosleep(CLOCK_MONOTONIC, TIMER_ABSTIME, in main()
200 if (clock_gettime(CLOCK_MONOTONIC, &now) != 0) /* Huh? */ in main()
/netbsd/external/bsd/libfido2/dist/openbsd-compat/
H A Dtime.h17 #ifndef CLOCK_MONOTONIC
18 #define CLOCK_MONOTONIC CLOCK_REALTIME macro
/netbsd/external/ibm-public/postfix/dist/src/util/
H A Dldseed.c65 #elif defined(CLOCK_MONOTONIC)
66 #define NON_WALLTIME_CLOCK CLOCK_MONOTONIC
/netbsd/external/gpl3/gcc.old/dist/libstdc++-v3/src/c++11/
H A Dchrono.cc86 syscall(SYS_clock_gettime, CLOCK_MONOTONIC, &tp); in now()
88 clock_gettime(CLOCK_MONOTONIC, &tp); in now()
/netbsd/external/gpl3/gcc/dist/libstdc++-v3/src/c++11/
H A Dchrono.cc86 syscall(SYS_clock_gettime, CLOCK_MONOTONIC, &tp); in now()
88 clock_gettime(CLOCK_MONOTONIC, &tp); in now()
/netbsd/regress/sys/kern/latency1/
H A Dlatency1.c78 clock_gettime(CLOCK_MONOTONIC, &end); in reader()
135 clock_gettime(CLOCK_MONOTONIC, &start); in main()
/netbsd/regress/sys/kern/latency2/
H A Dlatency2.c77 clock_gettime(CLOCK_MONOTONIC, &end); in reader()
143 clock_gettime(CLOCK_MONOTONIC, &start); in main()
/netbsd/external/bsd/wpa/dist/src/utils/
H A Dos_unix.c75 #elif defined(CLOCK_MONOTONIC) in os_get_reltime()
76 static clockid_t clock_id = CLOCK_MONOTONIC; in os_get_reltime()
96 clock_id = CLOCK_MONOTONIC; in os_get_reltime()
99 #ifdef CLOCK_MONOTONIC in os_get_reltime()
100 case CLOCK_MONOTONIC: in os_get_reltime()

1234567