/netbsd/tests/lib/libc/sys/ |
H A D | t_timerfd.c | 191 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 D | t_sigtimedwait.c | 59 clock_gettime(CLOCK_MONOTONIC, &before); in ATF_TC_BODY() 61 clock_gettime(CLOCK_MONOTONIC, &after); in ATF_TC_BODY()
|
H A D | t_nanosleep.c | 73 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 D | time.c | 51 # 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 D | time.c | 51 # 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 D | t_timer.c | 99 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 D | argon2_utils.c | 113 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 D | t_thrd.c | 190 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 D | t_condwait.c | 88 if (clck == CLOCK_MONOTONIC) in run() 134 cond_wait(CLOCK_MONOTONIC, "CLOCK_MONOTONIC"); in ATF_TC_BODY()
|
/netbsd/usr.bin/rump_dhcpclient/ |
H A D | common.c | 86 #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 D | timer.c | 105 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 D | ia64-sigill.c | 57 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 D | watchthreads-reorder.c | 66 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 D | siginfo-threads.c | 69 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 D | ia64-sigill.c | 57 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 D | watchthreads-reorder.c | 66 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 D | siginfo-threads.c | 69 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 D | sleep.c | 178 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 D | time.h | 17 #ifndef CLOCK_MONOTONIC 18 #define CLOCK_MONOTONIC CLOCK_REALTIME macro
|
/netbsd/external/ibm-public/postfix/dist/src/util/ |
H A D | ldseed.c | 65 #elif defined(CLOCK_MONOTONIC) 66 #define NON_WALLTIME_CLOCK CLOCK_MONOTONIC
|
/netbsd/external/gpl3/gcc.old/dist/libstdc++-v3/src/c++11/ |
H A D | chrono.cc | 86 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 D | chrono.cc | 86 syscall(SYS_clock_gettime, CLOCK_MONOTONIC, &tp); in now() 88 clock_gettime(CLOCK_MONOTONIC, &tp); in now()
|
/netbsd/regress/sys/kern/latency1/ |
H A D | latency1.c | 78 clock_gettime(CLOCK_MONOTONIC, &end); in reader() 135 clock_gettime(CLOCK_MONOTONIC, &start); in main()
|
/netbsd/regress/sys/kern/latency2/ |
H A D | latency2.c | 77 clock_gettime(CLOCK_MONOTONIC, &end); in reader() 143 clock_gettime(CLOCK_MONOTONIC, &start); in main()
|
/netbsd/external/bsd/wpa/dist/src/utils/ |
H A D | os_unix.c | 75 #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()
|