Home
last modified time | relevance | path

Searched refs:CLOCK_REALTIME (Results 1 – 17 of 17) sorted by relevance

/Zephyr-latest/tests/posix/common/src/
Dclock.c24 CLOCK_REALTIME,
107 zassert_ok(clock_gettime(CLOCK_REALTIME, &rts)); in ZTEST()
132 zassert_equal(clock_settime(CLOCK_REALTIME, NULL), -1); in ZTEST()
139 zassert_equal(clock_settime(CLOCK_REALTIME, &ts), -1); in ZTEST()
143 zassert_equal(clock_settime(CLOCK_REALTIME, &ts), -1); in ZTEST()
186 (void)clock_gettime(CLOCK_REALTIME, &then); in ZTEST()
190 (void)clock_gettime(CLOCK_REALTIME, &now); in ZTEST()
249 {CLOCK_REALTIME, NULL, 0}, in ZTEST()
254 {CLOCK_REALTIME, &res, 0}, in ZTEST()
Dnanosleep.c109 common_errors(SELECT_NANOSLEEP, CLOCK_REALTIME, 0); in ZTEST()
126 clock_gettime(CLOCK_REALTIME, &req); in ZTEST()
127 zassert_equal(clock_nanosleep(CLOCK_REALTIME, TIMER_ABSTIME, &req, &rem), 0); in ZTEST()
256 clock_gettime(CLOCK_REALTIME, &ts); in ZTEST()
261 common_lower_bound_check(SELECT_CLOCK_NANOSLEEP, CLOCK_REALTIME, TIMER_ABSTIME, in ZTEST()
265 common_lower_bound_check(SELECT_CLOCK_NANOSLEEP, CLOCK_REALTIME, TIMER_ABSTIME, in ZTEST()
269 common_lower_bound_check(SELECT_CLOCK_NANOSLEEP, CLOCK_REALTIME, TIMER_ABSTIME, in ZTEST()
273 common_lower_bound_check(SELECT_CLOCK_NANOSLEEP, CLOCK_REALTIME, TIMER_ABSTIME, in ZTEST()
277 common_lower_bound_check(SELECT_CLOCK_NANOSLEEP, CLOCK_REALTIME, TIMER_ABSTIME, in ZTEST()
281 common_lower_bound_check(SELECT_CLOCK_NANOSLEEP, CLOCK_REALTIME, TIMER_ABSTIME, in ZTEST()
Dcond.c60 zassert_ok(pthread_condattr_setclock(&att, CLOCK_REALTIME), in ZTEST()
64 zassert_equal(clock_id, CLOCK_REALTIME, "clock attribute not set correctly"); in ZTEST()
Dtimer.c87 test_timer(CLOCK_REALTIME, SIGEV_SIGNAL); in ZTEST()
92 test_timer(CLOCK_REALTIME, SIGEV_THREAD); in ZTEST()
/Zephyr-latest/lib/posix/options/
Dclock.c41 case CLOCK_REALTIME: in z_impl___posix_clock_get_base()
74 case CLOCK_REALTIME: in clock_gettime()
107 if (!(clock_id == CLOCK_MONOTONIC || clock_id == CLOCK_REALTIME || in clock_getres()
136 if (clock_id != CLOCK_REALTIME) { in clock_settime()
204 if (!((clock_id == CLOCK_REALTIME) || (clock_id == CLOCK_MONOTONIC))) { in __z_clock_nanosleep()
228 if (flags & TIMER_ABSTIME && clock_id == CLOCK_REALTIME) { in __z_clock_nanosleep()
281 res = clock_gettime(CLOCK_REALTIME, &ts); in gettimeofday()
Dcond.c251 if (clock_id != CLOCK_REALTIME && clock_id != CLOCK_MONOTONIC) { in pthread_condattr_setclock()
Dsemaphore.c173 if (clock_gettime(CLOCK_REALTIME, &current) < 0) { in sem_timedwait()
/Zephyr-latest/include/zephyr/posix/
Dtime.h68 #ifndef CLOCK_REALTIME
69 #define CLOCK_REALTIME 1 macro
/Zephyr-latest/lib/libc/common/source/time/
Dtime.c17 ret = clock_gettime(CLOCK_REALTIME, &ts); in time()
/Zephyr-latest/subsys/shell/modules/
Ddate_service.c147 clock_gettime(CLOCK_REALTIME, &tp); in cmd_date_set()
180 ret = clock_settime(CLOCK_REALTIME, &tp); in cmd_date_set()
196 clock_gettime(CLOCK_REALTIME, &tp); in cmd_date_get()
/Zephyr-latest/subsys/net/lib/config/
Dinit_clock_sntp.c53 res = clock_settime(CLOCK_REALTIME, &tspec); in net_init_clock_via_sntp()
/Zephyr-latest/boards/native/native_posix/
Dtimer_model.c164 clock_gettime(CLOCK_REALTIME, &tv); in hwtimer_init()
/Zephyr-latest/scripts/native_simulator/native/src/
Dtimer_model.c157 clock_gettime(CLOCK_REALTIME, &tv); in hwtimer_init()
/Zephyr-latest/tests/posix/semaphores/src/
Dmain.c52 zassert_equal(clock_gettime(CLOCK_REALTIME, &abstime), 0, "clock_gettime failed"); in semaphore_test()
/Zephyr-latest/subsys/logging/
Dlog_core.c245 clock_gettime(CLOCK_REALTIME, &tspec); in default_rt_get_timestamp()
/Zephyr-latest/doc/releases/
Drelease-notes-3.6.rst1180 * Added support for async thread cancellation and ``SIGEV_THREAD``, ``CLOCK_REALTIME``.
Drelease-notes-2.3.rst1119 * :github:`23624` - posix: clock: clock_gettime fault on userspace with CLOCK_REALTIME