Home
last modified time | relevance | path

Searched refs:k_uptime_get (Results 1 – 25 of 124) sorted by relevance

12345

/Zephyr-Core-3.6.0/tests/kernel/threads/no-multithreading/src/
Dmain.c13 int64_t now = k_uptime_get(); in ZTEST()
16 while (k_uptime_get() != now) { in ZTEST()
24 now = k_uptime_get(); in ZTEST()
28 int64_t diff = k_uptime_get() - now; in ZTEST()
65 now = k_uptime_get(); in ZTEST()
73 diff = k_uptime_get() - now; in ZTEST()
/Zephyr-Core-3.6.0/tests/posix/common/src/
Dsleep.c40 then = k_uptime_get(); in ZTEST()
42 now = k_uptime_get(); in ZTEST()
46 then = k_uptime_get(); in ZTEST()
48 now = k_uptime_get(); in ZTEST()
69 then = k_uptime_get(); in ZTEST()
71 now = k_uptime_get(); in ZTEST()
/Zephyr-Core-3.6.0/drivers/watchdog/
Dwdt_npcx.c101 st = k_uptime_get(); in wdt_t0out_reload()
103 if (k_uptime_get() - st > NPCX_T0CSR_RST_TIMEOUT) { in wdt_t0out_reload()
120 st = k_uptime_get(); in wdt_wait_stopped()
123 if (k_uptime_get() - st > NPCX_WATCHDOG_STOP_TIMEOUT) { in wdt_wait_stopped()
273 while (k_uptime_get() - data->last_watchdog_touch < NPCX_WDT_MIN_WND_TIME) { in wdt_npcx_disable()
301 data->last_watchdog_touch = k_uptime_get(); in wdt_npcx_feed()
/Zephyr-Core-3.6.0/drivers/sensor/pms7003/
Dpms7003.c53 int64_t timeout_time = k_uptime_get() + timeout; in uart_wait_for()
58 if (k_uptime_get() > timeout_time) { in uart_wait_for()
91 int64_t timeout_time = k_uptime_get() + timeout; in uart_read_bytes()
96 if (k_uptime_get() > timeout_time) { in uart_read_bytes()
/Zephyr-Core-3.6.0/samples/basic/hash_map/src/
Dmain.c50 if (k_uptime_get() / MSEC_PER_SEC > CONFIG_TEST_LIB_HASH_MAP_DURATION_S) { in main()
63 if (k_uptime_get() / MSEC_PER_SEC > CONFIG_TEST_LIB_HASH_MAP_DURATION_S) { in main()
75 if (k_uptime_get() / MSEC_PER_SEC > CONFIG_TEST_LIB_HASH_MAP_DURATION_S) { in main()
/Zephyr-Core-3.6.0/tests/kernel/sleep/src/
Dusleep.c75 start_ms = k_uptime_get(); in ZTEST_USER()
81 end_ms = k_uptime_get(); in ZTEST_USER()
/Zephyr-Core-3.6.0/samples/boards/esp32/light_sleep/src/
Dmain.c62 int64_t t_before_ms = k_uptime_get(); in main()
73 int64_t t_after_ms = k_uptime_get(); in main()
/Zephyr-Core-3.6.0/subsys/net/lib/sntp/
Dsntp_simple.c42 deadline = k_uptime_get() + (uint64_t)timeout; in sntp_simple()
48 while (k_uptime_get() < deadline) { in sntp_simple()
/Zephyr-Core-3.6.0/tests/bsim/bluetooth/host/privacy/legacy/src/
Dtester.c49 test_data.old_time = k_uptime_get(); in cb_expect_rpa()
66 diff_ms = k_uptime_get() - test_data.old_time; in cb_expect_rpa()
74 test_data.old_time = k_uptime_get(); in cb_expect_rpa()
/Zephyr-Core-3.6.0/tests/bsim/bluetooth/host/privacy/peripheral/src/
Dtester.c81 adv_set_data[adv_index].old_time = k_uptime_get(); in test_address()
98 diff_ms = k_uptime_get() - adv_set_data[adv_index].old_time; in test_address()
106 adv_set_data[adv_index].old_time = k_uptime_get(); in test_address()
/Zephyr-Core-3.6.0/tests/drivers/clock_control/nrf_onoff_and_bt/src/
Dmain.c98 uint64_t start_time = k_uptime_get(); in ZTEST()
130 elapsed = k_uptime_get() - start_time; in ZTEST()
186 uint64_t start_time = k_uptime_get(); in ZTEST()
215 elapsed = k_uptime_get() - start_time; in ZTEST()
/Zephyr-Core-3.6.0/tests/ztest/ztress/src/
Dmain.c36 d = k_uptime_get(); in ZTEST()
42 d = k_uptime_get() - d; in ZTEST()
53 d = k_uptime_get(); in ZTEST()
56 d = k_uptime_get() - d; in ZTEST()
/Zephyr-Core-3.6.0/tests/drivers/regulator/fixed/src/
Dmain.c25 zassert_true(k_uptime_get() >= startup_delay_ms); in ZTEST()
38 init = k_uptime_get(); in ZTEST()
/Zephyr-Core-3.6.0/samples/subsys/ipc/ipc_service/icmsg/remote/src/
Dmain.c58 int64_t start = k_uptime_get(); in send_for_time()
60 while ((k_uptime_get() - start) < sending_time_ms) { in send_for_time()
/Zephyr-Core-3.6.0/tests/bsim/bluetooth/host/privacy/central/src/
Dtester.c32 old_time = k_uptime_get(); in scanned_cb()
46 new_time = k_uptime_get(); in scanned_cb()
/Zephyr-Core-3.6.0/tests/benchmarks/footprints/src/
Dtimer.c61 tdata.timestamp = k_uptime_get(); in thread_fn()
74 tdata.timestamp = k_uptime_get(); in thread_fn()
/Zephyr-Core-3.6.0/tests/kernel/threads/thread_init/src/
Dmain.c66 uint64_t t_delay = k_uptime_get() - t_create; in thread_entry()
155 t_create = k_uptime_get(); in ZTEST_USER()
191 t_create = k_uptime_get(); in ZTEST()
/Zephyr-Core-3.6.0/samples/boards/nrf/mesh/onoff_level_lighting_vnd_app/src/mesh/
Dtransition.c34 now = k_uptime_get(); in calculate_rt()
164 ctl->transition->start_timestamp = k_uptime_get(); in onoff_work_handler()
221 ctl->transition->start_timestamp = k_uptime_get(); in level_lightness_work_handler()
283 ctl->transition->start_timestamp = k_uptime_get(); in level_temp_work_handler()
314 ctl->transition->start_timestamp = k_uptime_get(); in light_lightness_actual_work_handler()
340 ctl->transition->start_timestamp = k_uptime_get(); in light_lightness_linear_work_handler()
366 ctl->transition->start_timestamp = k_uptime_get(); in light_ctl_work_handler()
399 ctl->transition->start_timestamp = k_uptime_get(); in light_ctl_temp_work_handler()
/Zephyr-Core-3.6.0/samples/subsys/ipc/ipc_service/icmsg/src/
Dmain.c60 int64_t start = k_uptime_get(); in send_for_time()
62 while ((k_uptime_get() - start) < sending_time_ms) { in send_for_time()
/Zephyr-Core-3.6.0/drivers/flash/
Dflash_gd32_v2.c85 const int64_t expired_time = k_uptime_get() + GD32_NV_FLASH_V2_TIMEOUT; in gd32_fmc_v2_bank0_wait_idle()
88 if (k_uptime_get() > expired_time) { in gd32_fmc_v2_bank0_wait_idle()
200 const int64_t expired_time = k_uptime_get() + GD32_NV_FLASH_V2_TIMEOUT; in gd32_fmc_v2_bank1_wait_idle()
203 if (k_uptime_get() > expired_time) { in gd32_fmc_v2_bank1_wait_idle()
Dflash_gd32_v1.c54 const int64_t expired_time = k_uptime_get() + GD32_NV_FLASH_V1_TIMEOUT; in gd32_fmc_v1_wait_idle()
57 if (k_uptime_get() > expired_time) { in gd32_fmc_v1_wait_idle()
/Zephyr-Core-3.6.0/tests/subsys/pm/power_mgmt_soc/src/
Dpower_mgmt.c65 latency = k_uptime_get() - trigger_time; in pm_latency_check()
137 trigger_time = k_uptime_get(); in pm_trigger_marker()
151 residency_delta = k_uptime_get() - trigger_time; in pm_exit_marker()
/Zephyr-Core-3.6.0/tests/posix/eventfd/src/
Dstress.c65 for (now = k_uptime_get(), end = now + end_ms, report = now + report_ms; now < end; in th_fun()
66 now = k_uptime_get()) { in th_fun()
/Zephyr-Core-3.6.0/subsys/net/lib/lwm2m/
Dipso_timer.c118 if (k_uptime_get() < timer->trigger_offset + temp) { in start_timer()
124 timer->trigger_offset = k_uptime_get(); in start_timer()
145 timer->cumulative_time_ms += k_uptime_get() - timer->trigger_offset; in stop_timer()
169 temp -= (k_uptime_get() - timer_data[i].trigger_offset); in remaining_time_read_cb()
193 temp += k_uptime_get() - timer_data[i].trigger_offset; in cumulative_time_read_cb()
/Zephyr-Core-3.6.0/tests/kernel/common/src/
Dclock.c47 t64 = k_uptime_get(); in ZTEST_USER()
48 while (k_uptime_get() < (t64 + 5)) { in ZTEST_USER()

12345