/src/lib/libc/gen/ |
timespec_get.c | 50 if (clock_gettime(CLOCK_REALTIME, ts) == -1) 54 if (clock_gettime(CLOCK_MONOTONIC, ts) == -1)
|
/src/lib/libc/compat/sys/ |
compat_clock.c | 46 __warn_references(clock_gettime, 47 "warning: reference to compatibility clock_gettime(); include <time.h> to generate correct reference") 56 __weak_alias(clock_gettime, _clock_gettime) 77 clock_gettime(clockid_t clockid, struct timespec50 *tim50) function in typeref:typename:int
|
/src/tests/lib/libpthread/ |
t_rwlock.c | 100 ATF_REQUIRE_EQ_MSG(clock_gettime(CLOCK_REALTIME, &to), 0, 109 ATF_REQUIRE_EQ_MSG(clock_gettime(CLOCK_REALTIME, &to), 0, 114 ATF_REQUIRE_EQ_MSG(clock_gettime(CLOCK_REALTIME, &to), 0,
|
t_thrd.c | 190 ATF_REQUIRE_EQ(clock_gettime(CLOCK_MONOTONIC, &start), 0); 192 ATF_REQUIRE_EQ(clock_gettime(CLOCK_MONOTONIC, &stop), 0); 206 ATF_REQUIRE_EQ(clock_gettime(CLOCK_MONOTONIC, &start), 0); 208 ATF_REQUIRE_EQ(clock_gettime(CLOCK_MONOTONIC, &stop), 0);
|
t_condwait.c | 68 ATF_REQUIRE_EQ(clock_gettime(clck, &ts), 0); 80 ATF_REQUIRE_EQ(clock_gettime(clck, &te), 0);
|
/src/games/warp/ |
util.h | 21 #define roundsleep(x) (clock_gettime(CLOCK_REALTIME, &timebuf),sleep(timebuf.tv_nsec > (500 * 1000 * 1000) ?x+1:x))
|
/src/lib/librumpuser/ |
configure.ac | 37 AC_CHECK_LIB([rt], [clock_gettime], 38 AC_DEFINE([HAVE_CLOCK_GETTIME], 1, [clock_gettime]), 39 AC_TRY_LINK_FUNC([clock_gettime], 40 AC_DEFINE([HAVE_CLOCK_GETTIME], 1, [clock_gettime])))
|
/src/tests/kernel/kqueue/ |
t_timer.c | 99 ATF_REQUIRE(clock_gettime(CLOCK_MONOTONIC, &ots) == 0); 113 ATF_REQUIRE(clock_gettime(CLOCK_MONOTONIC, 131 ATF_REQUIRE(clock_gettime(CLOCK_MONOTONIC, 147 ATF_REQUIRE(clock_gettime(CLOCK_MONOTONIC, &ots) == 0); 151 ATF_REQUIRE(clock_gettime(CLOCK_MONOTONIC, &ts) == 0); 284 ATF_REQUIRE(clock_gettime(CLOCK_REALTIME, &ots) == 0); 293 ATF_REQUIRE(clock_gettime(CLOCK_REALTIME, &ts) == 0); 321 ATF_REQUIRE(clock_gettime(CLOCK_MONOTONIC, &ots) == 0); 323 ATF_REQUIRE(clock_gettime(CLOCK_MONOTONIC, &ts) == 0);
|
/src/sbin/cgdconfig/ |
argon2_utils.c | 113 if (clock_gettime(CLOCK_MONOTONIC, &tp1) == -1) 124 if (clock_gettime(CLOCK_MONOTONIC, &tp2) == -1) 144 if (clock_gettime(CLOCK_MONOTONIC, &tp1) == -1) 155 if (clock_gettime(CLOCK_MONOTONIC, &tp2) == -1)
|
/src/sys/external/bsd/compiler_rt/dist/lib/xray/ |
xray_tsc.h | 53 // So on ARM we use clock_gettime() which gives the result in nanoseconds. 70 int result = clock_gettime(CLOCK_REALTIME, &TS); 72 Report("clock_gettime(2) returned %d, errno=%d.", result, int(errno));
|
/src/tests/lib/libc/sys/ |
t_clock_nanosleep.c | 51 ATF_REQUIRE(clock_gettime(CLOCK_REALTIME, &rqtp) == 0);
|
t_sigtimedwait.c | 59 clock_gettime(CLOCK_MONOTONIC, &before); 61 clock_gettime(CLOCK_MONOTONIC, &after);
|
t_clock_gettime.c | 102 CL(clock_gettime(CLOCK_REALTIME, &tsa)); 111 CL(clock_gettime(CLOCK_REALTIME, &tsb)); 244 RL(clock_gettime(CLOCK_MONOTONIC, &mono_t0)); 245 RL(clock_gettime(clockid, &t0)); 252 RL(clock_gettime(clockid, &t1)); 261 RL(clock_gettime(CLOCK_MONOTONIC, &mono_t1)); 317 " in clock_gettime(2) for some reason");
|
t_timerfd.c | 216 RL(clock_gettime(CLOCK_MONOTONIC, &now)); 266 RL(clock_gettime(CLOCK_MONOTONIC, &then)); 279 RL(clock_gettime(CLOCK_MONOTONIC, &now)); 313 ATF_REQUIRE(clock_gettime(CLOCK_MONOTONIC, &then) == 0); 322 ATF_REQUIRE(clock_gettime(CLOCK_MONOTONIC, &now) == 0); 356 ATF_REQUIRE(clock_gettime(CLOCK_MONOTONIC, &then) == 0); 359 ATF_REQUIRE(clock_gettime(CLOCK_MONOTONIC, &now) == 0); 394 ATF_REQUIRE(clock_gettime(CLOCK_MONOTONIC, &then) == 0); 407 ATF_REQUIRE(clock_gettime(CLOCK_MONOTONIC, &now) == 0); 441 ATF_REQUIRE(clock_gettime(CLOCK_REALTIME, &now) == 0) [all...] |
t_nanosleep.c | 73 ATF_REQUIRE(clock_gettime(CLOCK_MONOTONIC, &ts1) == 0); 75 ATF_REQUIRE(clock_gettime(CLOCK_MONOTONIC, &ts2) == 0);
|
/src/usr.sbin/rtadvd/ |
rtadvd_hostops.c | 40 .op_clock_gettime = clock_gettime,
|
/src/regress/sys/kern/latency1/ |
latency1.c | 78 clock_gettime(CLOCK_MONOTONIC, &end); 135 clock_gettime(CLOCK_MONOTONIC, &start);
|
/src/tests/lib/libc/gen/ |
t_timespec_get.c | 72 ATF_REQUIRE_EQ(clock_gettime(CLOCK_REALTIME, &ts2), 0); 100 ATF_REQUIRE_EQ(clock_gettime(CLOCK_MONOTONIC, &ts2), 0);
|
/src/regress/sys/kern/latency2/ |
latency2.c | 77 clock_gettime(CLOCK_MONOTONIC, &end); 143 clock_gettime(CLOCK_MONOTONIC, &start);
|
/src/usr.bin/rump_dhcpclient/ |
common.c | 91 if (clock_gettime(CLOCK_MONOTONIC, &ts) == 0) { 98 if (clock_gettime(posix_clock, &ts) == 0) { 107 * This is crap though - why can't they implement clock_gettime?*/
|
/src/sys/external/bsd/compiler_rt/dist/lib/xray/tests/unit/ |
fdr_controller_test.cc | 59 C = llvm::make_unique<FDRController<>>(BQ.get(), B, *W, clock_gettime, 0); 107 C = llvm::make_unique<FDRController<>>(BQ.get(), B, *W, clock_gettime, 1000); 122 C = llvm::make_unique<FDRController<>>(BQ.get(), B, *W, clock_gettime, 1000); 142 C = llvm::make_unique<FDRController<>>(BQ.get(), B, *W, clock_gettime, 1000); 167 C = llvm::make_unique<FDRController<>>(BQ.get(), B, *W, clock_gettime, 1000); 191 C = llvm::make_unique<FDRController<>>(BQ.get(), B, *W, clock_gettime, 1000); 218 C = llvm::make_unique<FDRController<>>(BQ.get(), B, *W, clock_gettime, 1000); 252 C = llvm::make_unique<FDRController<>>(BQ.get(), B, *W, clock_gettime, 1000); 313 C = llvm::make_unique<FDRController<>>(BQ.get(), B, *W, clock_gettime, 0);
|
/src/bin/sleep/ |
sleep.c | 178 if (clock_gettime(CLOCK_MONOTONIC, &now) != 0) 179 err(EXIT_FAILURE, "clock_gettime"); 200 if (clock_gettime(CLOCK_MONOTONIC, &now) != 0) /* Huh? */
|
/src/regress/sys/kern/nameibench/ |
nameibench.c | 127 if (clock_gettime(CLOCK_MONOTONIC, &sts)) { 128 perror("clock_gettime"); 137 if (clock_gettime(CLOCK_MONOTONIC, &ets)) { 138 perror("clock_gettime");
|
/src/sys/external/bsd/drm/dist/ |
configure.ac | 69 dnl We use clock_gettime to check for timeouts in drmWaitVBlank 71 AC_CHECK_FUNCS([clock_gettime], [CLOCK_LIB=], 72 [AC_CHECK_LIB([rt], [clock_gettime], [CLOCK_LIB=-lrt], 73 [AC_MSG_ERROR([Couldn't find clock_gettime])])])
|
/src/usr.bin/time/ |
time.c | 123 (void)clock_gettime(CLOCK_MONOTONIC, &before); 140 (void)clock_gettime(CLOCK_MONOTONIC, &after);
|