Home
last modified time | relevance | path

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

123456

/Zephyr-latest/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-latest/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-latest/tests/kernel/sleep/src/
Dusleep.c75 start_ms = k_uptime_get(); in ZTEST_USER()
81 end_ms = k_uptime_get(); in ZTEST_USER()
/Zephyr-latest/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-latest/samples/boards/espressif/light_sleep/src/
Dmain.c63 int64_t t_before_ms = k_uptime_get(); in main()
74 int64_t t_after_ms = k_uptime_get(); in main()
/Zephyr-latest/drivers/watchdog/
Dwdt_npcx.c104 st = k_uptime_get(); in wdt_t0out_reload()
106 if (k_uptime_get() - st > NPCX_T0CSR_RST_TIMEOUT) { in wdt_t0out_reload()
123 st = k_uptime_get(); in wdt_wait_stopped()
126 if (k_uptime_get() - st > NPCX_WATCHDOG_STOP_TIMEOUT) { in wdt_wait_stopped()
296 while (k_uptime_get() - data->last_watchdog_touch < min_wnd_t) { in wdt_npcx_disable()
324 data->last_watchdog_touch = k_uptime_get(); in wdt_npcx_feed()
/Zephyr-latest/samples/subsys/ipc/ipc_service/icmsg/remote/src/
Dmain.c76 int64_t start = k_uptime_get(); in send_for_time()
78 while ((k_uptime_get() - start) < sending_time_ms) { in send_for_time()
109 while ((recv_sem != 0) && ((k_uptime_get() - start) < sending_time_ms)) { in send_for_time()
/Zephyr-latest/tests/bsim/bluetooth/host/privacy/legacy/src/
Dtester.c50 test_data.old_time = k_uptime_get(); in cb_expect_rpa()
67 diff_ms = k_uptime_get() - test_data.old_time; in cb_expect_rpa()
75 test_data.old_time = k_uptime_get(); in cb_expect_rpa()
/Zephyr-latest/tests/bsim/bluetooth/host/privacy/peripheral/src/
Dtester_rpa_expired.c48 adv_set_data[adv_index].old_time = k_uptime_get(); in test_address()
52 diff_ms = k_uptime_get() - adv_set_data[adv_index].old_time; in test_address()
96 adv_set_data[adv_index].old_time = k_uptime_get(); in test_address()
Dtester_rpa_rotation.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()
Ddut_rpa_expired.c49 diff_ms = k_uptime_get() - old_time; in rpa_expired_cb()
54 old_time = k_uptime_get(); in rpa_expired_cb()
/Zephyr-latest/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-latest/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-latest/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-latest/samples/subsys/ipc/ipc_service/icmsg/src/
Dmain.c80 int64_t start = k_uptime_get(); in send_for_time()
82 while ((k_uptime_get() - start) < sending_time_ms) { in send_for_time()
113 while ((recv_sem != 0) && ((k_uptime_get() - start) < sending_time_ms)) { in send_for_time()
/Zephyr-latest/samples/boards/nordic/clock_control/src/
Dmain.c67 req_start_uptime = k_uptime_get(); in main()
80 req_stop_uptime = k_uptime_get(); in main()
/Zephyr-latest/subsys/net/lib/sntp/
Dsntp_simple.c29 deadline = k_uptime_get() + (uint64_t)timeout; in sntp_simple_helper()
36 while (k_uptime_get() < deadline) { in sntp_simple_helper()
/Zephyr-latest/tests/bsim/bluetooth/host/privacy/central/src/
Ddut.c101 int64_t old_time = k_uptime_get(); in dut_procedure_connect_timeout()
108 int64_t new_time = k_uptime_get(); in dut_procedure_connect_timeout()
/Zephyr-latest/tests/benchmarks/footprints/src/
Dtimer.c61 tdata.timestamp = k_uptime_get(); in thread_fn()
74 tdata.timestamp = k_uptime_get(); in thread_fn()
/Zephyr-latest/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-latest/modules/mbedtls/
Dzephyr_init.c81 return (mbedtls_ms_time_t)k_uptime_get(); in mbedtls_ms_time()
/Zephyr-latest/samples/boards/nordic/mesh/onoff_level_lighting_vnd_app/src/mesh/
Dtransition.c32 now = k_uptime_get(); in calculate_rt()
162 ctl->transition->start_timestamp = k_uptime_get(); in onoff_work_handler()
219 ctl->transition->start_timestamp = k_uptime_get(); in level_lightness_work_handler()
281 ctl->transition->start_timestamp = k_uptime_get(); in level_temp_work_handler()
312 ctl->transition->start_timestamp = k_uptime_get(); in light_lightness_actual_work_handler()
338 ctl->transition->start_timestamp = k_uptime_get(); in light_lightness_linear_work_handler()
364 ctl->transition->start_timestamp = k_uptime_get(); in light_ctl_work_handler()
397 ctl->transition->start_timestamp = k_uptime_get(); in light_ctl_temp_work_handler()
/Zephyr-latest/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-latest/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()

123456