Home
last modified time | relevance | path

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

/Zephyr-latest/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()
Dtimer.c97 test_timer(CLOCK_MONOTONIC, SIGEV_SIGNAL); in ZTEST()
102 test_timer(CLOCK_MONOTONIC, SIGEV_THREAD); in ZTEST()
112 zassert_ok(timer_create(CLOCK_MONOTONIC, &sig, &timerid)); in ZTEST()
135 zassert_ok(timer_create(CLOCK_MONOTONIC, &sig, &timerid)); in ZTEST()
Dclock.c23 CLOCK_MONOTONIC,
250 {CLOCK_MONOTONIC, NULL, 0}, in ZTEST()
255 {CLOCK_MONOTONIC, &res, 0}, in ZTEST()
Dcond.c58 zassert_equal(clock_id, CLOCK_MONOTONIC, "clock attribute not set correctly"); in ZTEST()
Dmqueue.c38 clock_gettime(CLOCK_MONOTONIC, &curtime); in sender_thread()
56 clock_gettime(CLOCK_MONOTONIC, &curtime); in receiver_thread()
Dmutex.c185 zassume_ok(clock_gettime(CLOCK_MONOTONIC, &time_point)); in test_mutex_timedlock_fn()
Dpthread.c416 clock_gettime(CLOCK_MONOTONIC, &not_done); in ZTEST()
417 clock_gettime(CLOCK_MONOTONIC, &done); in ZTEST()
/Zephyr-latest/lib/posix/options/
Dclock.c36 case CLOCK_MONOTONIC: in z_impl___posix_clock_get_base()
69 case CLOCK_MONOTONIC: in clock_gettime()
107 if (!(clock_id == CLOCK_MONOTONIC || clock_id == CLOCK_REALTIME || in clock_getres()
204 if (!((clock_id == CLOCK_REALTIME) || (clock_id == CLOCK_MONOTONIC))) { in __z_clock_nanosleep()
258 return __z_clock_nanosleep(CLOCK_MONOTONIC, 0, rqtp, rmtp); in nanosleep()
Dtimespec_to_timeout.c20 clock_gettime(CLOCK_MONOTONIC, &curtime); in timespec_to_timeoutms()
Dcond.c229 att->clock = CLOCK_MONOTONIC; in pthread_condattr_init()
251 if (clock_id != CLOCK_REALTIME && clock_id != CLOCK_MONOTONIC) { in pthread_condattr_setclock()
DKconfig.timer31 This enables CLOCK_MONOTONIC.
DKconfig.profile10 select POSIX_AEP_REALTIME_MINIMAL # CLOCK_MONOTONIC, pthread_attr_setstack(), etc
/Zephyr-latest/include/zephyr/posix/
Dtime.h80 #ifndef CLOCK_MONOTONIC
81 #define CLOCK_MONOTONIC 4 macro
/Zephyr-latest/tests/lib/c_lib/thrd/src/
Dmtx.c97 zassume_ok(clock_gettime(CLOCK_MONOTONIC, &time_point)); in mtx_timedlock_fn()
Dcnd.c74 zassume_ok(clock_gettime(CLOCK_MONOTONIC, &time_point)); in test_cnd_thread_fn()
/Zephyr-latest/samples/posix/philosophers/src/
Dmain.c127 clock_gettime(CLOCK_MONOTONIC, &ts); in get_random_delay()
/Zephyr-latest/boards/native/native_posix/
Dtimer_model.c137 clock_gettime(CLOCK_MONOTONIC, tv); in host_clock_gettime()
/Zephyr-latest/scripts/native_simulator/native/src/
Dtimer_model.c125 clock_gettime(CLOCK_MONOTONIC, tv); in host_clock_gettime()
/Zephyr-latest/doc/kernel/
Dtimeutil.rst12 equivalent to this counter is something like ``CLOCK_MONOTONIC`` or, in Linux,
/Zephyr-latest/doc/services/portability/posix/option_groups/
Dindex.rst809 CLOCK_MONOTONIC,yes