Lines Matching refs:start_tick
107 uint32_t start_tick; in test_thread() local
114 start_tick = k_uptime_get_32(); in test_thread()
118 if (!sleep_time_valid(start_tick, end_tick, ONE_SECOND_ALIGNED)) { in test_thread()
120 end_tick - start_tick, ONE_SECOND_ALIGNED); in test_thread()
128 start_tick = k_uptime_get_32(); in test_thread()
132 if (end_tick - start_tick > TICK_MARGIN) { in test_thread()
134 end_tick - start_tick); in test_thread()
141 start_tick = k_uptime_get_32(); in test_thread()
145 if (end_tick - start_tick > TICK_MARGIN) { in test_thread()
147 end_tick - start_tick); in test_thread()
154 start_tick = k_uptime_get_32(); in test_thread()
158 if (end_tick - start_tick > TICK_MARGIN) { in test_thread()
160 end_tick - start_tick); in test_thread()
196 uint32_t start_tick; in ZTEST() local
231 start_tick = k_uptime_get_32(); in ZTEST()
234 zassert_true(sleep_time_valid(start_tick, end_tick, ONE_SECOND_ALIGNED), in ZTEST()
236 end_tick - start_tick, ONE_SECOND_ALIGNED); in ZTEST()