Home
last modified time | relevance | path

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

/Zephyr-Core-3.5.0/tests/posix/common/src/
Dnanosleep.c117 common_errors(SELECT_CLOCK_NANOSLEEP, CLOCK_MONOTONIC, TIMER_ABSTIME); in ZTEST()
120 clock_gettime(CLOCK_MONOTONIC, &req); in ZTEST()
121 zassert_equal(clock_nanosleep(CLOCK_MONOTONIC, TIMER_ABSTIME, &req, &rem), 0); in ZTEST()
228 clock_gettime(CLOCK_MONOTONIC, &ts); in ZTEST()
233 common_lower_bound_check(SELECT_CLOCK_NANOSLEEP, CLOCK_MONOTONIC, TIMER_ABSTIME, in ZTEST()
237 common_lower_bound_check(SELECT_CLOCK_NANOSLEEP, CLOCK_MONOTONIC, TIMER_ABSTIME, in ZTEST()
241 common_lower_bound_check(SELECT_CLOCK_NANOSLEEP, CLOCK_MONOTONIC, TIMER_ABSTIME, in ZTEST()
245 common_lower_bound_check(SELECT_CLOCK_NANOSLEEP, CLOCK_MONOTONIC, TIMER_ABSTIME, in ZTEST()
249 common_lower_bound_check(SELECT_CLOCK_NANOSLEEP, CLOCK_MONOTONIC, TIMER_ABSTIME, in ZTEST()
253 common_lower_bound_check(SELECT_CLOCK_NANOSLEEP, CLOCK_MONOTONIC, TIMER_ABSTIME, in ZTEST()
Dclock.c27 zassert_ok(clock_gettime(CLOCK_MONOTONIC, &ts)); in ZTEST()
29 zassert_ok(clock_gettime(CLOCK_MONOTONIC, &te)); in ZTEST()
52 ret = clock_gettime(CLOCK_MONOTONIC, &mts); in ZTEST()
70 ret = clock_settime(CLOCK_MONOTONIC, &nts); in ZTEST()
Dtimer.c40 ret = timer_create(CLOCK_MONOTONIC, &sig, &timerid); in ZTEST()
63 clock_gettime(CLOCK_MONOTONIC, &ts); in ZTEST()
70 clock_gettime(CLOCK_MONOTONIC, &te); in ZTEST()
101 timer_create(CLOCK_MONOTONIC, &sig, &timerid); in ZTEST()
Dmqueue.c42 clock_gettime(CLOCK_MONOTONIC, &curtime); in sender_thread()
60 clock_gettime(CLOCK_MONOTONIC, &curtime); in receiver_thread()
Dmutex.c218 zassume_ok(clock_gettime(CLOCK_MONOTONIC, &time_point)); in test_mutex_timedlock_fn()
Dpthread.c244 zassert_equal(clock_id, CLOCK_MONOTONIC, "clock attribute not set correctly"); in ZTEST()
/Zephyr-Core-3.5.0/include/zephyr/posix/
Dtime.h72 #ifndef CLOCK_MONOTONIC
73 #define CLOCK_MONOTONIC 4 macro
/Zephyr-Core-3.5.0/lib/posix/
Dnanosleep.c23 return clock_nanosleep(CLOCK_MONOTONIC, 0, rqtp, rmtp); in nanosleep()
D_common.c21 clock_gettime(CLOCK_MONOTONIC, &curtime); in timespec_to_timeoutms()
Dclock.c34 case CLOCK_MONOTONIC: in z_impl_clock_gettime()
124 if (!(clock_id == CLOCK_REALTIME || clock_id == CLOCK_MONOTONIC)) { in clock_nanosleep()
Dcond.c229 att->clock = CLOCK_MONOTONIC; in pthread_condattr_init()
251 if (clock_id != CLOCK_REALTIME && clock_id != CLOCK_MONOTONIC) { in pthread_condattr_setclock()
Dtimer.c56 if (clockid != CLOCK_MONOTONIC || evp == NULL || in timer_create()
/Zephyr-Core-3.5.0/boards/posix/native_posix/
Dtimer_model.c137 clock_gettime(CLOCK_MONOTONIC, tv); in host_clock_gettime()
/Zephyr-Core-3.5.0/scripts/native_simulator/native/src/
Dtimer_model.c125 clock_gettime(CLOCK_MONOTONIC, tv); in host_clock_gettime()
/Zephyr-Core-3.5.0/doc/kernel/
Dtimeutil.rst12 equivalent to this counter is something like ``CLOCK_MONOTONIC`` or, in Linux,