Home
last modified time | relevance | path

Searched refs:clock_gettime (Results 1 – 25 of 29) sorted by relevance

12

/Zephyr-latest/tests/posix/common/src/
Dclock.c72 zassert_equal(clock_gettime(CLOCK_INVALID, &ts), -1); in ZTEST()
78 zassert_equal(clock_gettime(clocks[0], NULL), -1); in ZTEST()
86 zassert_ok(clock_gettime(clocks[i], &ts)); in ZTEST()
107 zassert_ok(clock_gettime(CLOCK_REALTIME, &rts)); in ZTEST()
159 zassert_ok(clock_gettime(clocks[i], &ts)); in ZTEST()
186 (void)clock_gettime(CLOCK_REALTIME, &then); in ZTEST()
190 (void)clock_gettime(CLOCK_REALTIME, &now); in ZTEST()
Dnanosleep.c120 clock_gettime(CLOCK_MONOTONIC, &req); in ZTEST()
126 clock_gettime(CLOCK_REALTIME, &req); in ZTEST()
228 clock_gettime(CLOCK_MONOTONIC, &ts); in ZTEST()
256 clock_gettime(CLOCK_REALTIME, &ts); in ZTEST()
Dtimer.c62 clock_gettime(clock_id, &ts); in test_timer()
64 clock_gettime(clock_id, &te); in test_timer()
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/libc/common/source/time/
Dtime.c17 ret = clock_gettime(CLOCK_REALTIME, &ts); in time()
/Zephyr-latest/lib/posix/options/
Dtimespec_to_timeout.c20 clock_gettime(CLOCK_MONOTONIC, &curtime); in timespec_to_timeoutms()
Dclock.c64 int clock_gettime(clockid_t clock_id, struct timespec *ts) in clock_gettime() function
281 res = clock_gettime(CLOCK_REALTIME, &ts); in gettimeofday()
Dsemaphore.c173 if (clock_gettime(CLOCK_REALTIME, &current) < 0) { in sem_timedwait()
DKconfig.timer9 Select 'y' here and Zephyr will provide implementations of clock_getres(), clock_gettime(),
DKconfig.profile9 select POSIX_BASE_DEFINITIONS # clock_gettime(), pthread_create(), sem_get(), etc
/Zephyr-latest/boards/native/native_posix/
Dtimer_model.c135 clock_gettime(CLOCK_MONOTONIC_RAW, tv); in host_clock_gettime()
137 clock_gettime(CLOCK_MONOTONIC, tv); in host_clock_gettime()
164 clock_gettime(CLOCK_REALTIME, &tv); in hwtimer_init()
/Zephyr-latest/subsys/shell/modules/
Ddate_service.c147 clock_gettime(CLOCK_REALTIME, &tp); in cmd_date_set()
196 clock_gettime(CLOCK_REALTIME, &tp); in cmd_date_get()
/Zephyr-latest/scripts/native_simulator/native/src/
Dtimer_model.c123 clock_gettime(CLOCK_MONOTONIC_RAW, tv); in host_clock_gettime()
125 clock_gettime(CLOCK_MONOTONIC, tv); in host_clock_gettime()
157 clock_gettime(CLOCK_REALTIME, &tv); in hwtimer_init()
/Zephyr-latest/include/zephyr/posix/
Dtime.h93 int clock_gettime(clockid_t clock_id, struct timespec *ts);
/Zephyr-latest/tests/posix/common/
DKconfig7 int "Number of iterations to check clock_gettime() reliability"
/Zephyr-latest/drivers/ethernet/
Deth_native_posix_adapt.c124 ret = clock_gettime(CLOCK_MONOTONIC_RAW, &tp); in eth_clock_gettime()
/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/doc/develop/languages/c/
Dcommon_libc.rst15 relying on the Zephyr function, :c:func:`clock_gettime`. This function can
/Zephyr-latest/samples/posix/philosophers/src/
Dmain.c127 clock_gettime(CLOCK_MONOTONIC, &ts); in get_random_delay()
/Zephyr-latest/arch/posix/include/
Dposix_cheats.h162 #define clock_gettime(...) zap_clock_gettime(__VA_ARGS__) macro
/Zephyr-latest/lib/libc/minimal/
DKconfig51 clock_gettime() function.
/Zephyr-latest/tests/posix/semaphores/src/
Dmain.c52 zassert_equal(clock_gettime(CLOCK_REALTIME, &abstime), 0, "clock_gettime failed"); in semaphore_test()

12