Lines Matching refs:time1

26 	uint64_t time2, time1 = posix_get_hw_cycle();  in ZTEST()  local
31 zassert_true(time2 - time1 == wait_times[i], in ZTEST()
34 time2, time1, wait_times[i]); in ZTEST()
35 time1 = time2; in ZTEST()
41 zassert_true(time2 - time1 == wait_times[i], in ZTEST()
44 time2, time1, wait_times[i]); in ZTEST()
45 time1 = time2; in ZTEST()
111 uint64_t time2, time1; in ZTEST() local
118 time1 = posix_get_hw_cycle(); in ZTEST()
127 zassert_true(time2 - time1 == TWO_TICKS_TIME + WASTED_TIME, in ZTEST()
130 time2, time1, TWO_TICKS_TIME + WASTED_TIME); in ZTEST()
137 time1 = posix_get_hw_cycle(); in ZTEST()
145 zassert_true(time2 - time1 == TWO_AND_HALF_TICKS, in ZTEST()
148 time2, time1, TWO_AND_HALF_TICKS); in ZTEST()
157 time1 = posix_get_hw_cycle(); in ZTEST()
165 zassert_true(time2 - time1 == TWO_TICKS_TIME + WASTED_TIME + 1, in ZTEST()
168 time2, time1, TWO_TICKS_TIME + WASTED_TIME + 1); in ZTEST()
175 time1 = posix_get_hw_cycle(); in ZTEST()
185 zassert_true(time2 - time1 == TWO_AND_HALF_TICKS + WASTED_TIME, in ZTEST()
188 time2, time1, TWO_AND_HALF_TICKS + WASTED_TIME); in ZTEST()
222 uint64_t time2, time1; in ZTEST() local
228 time1 = posix_get_hw_cycle(); in ZTEST()
236 zassert_true(time2 - time1 == ONE_TICK_TIME + WASTED_TIME, in ZTEST()
239 time2, time1, ONE_TICK_TIME); in ZTEST()
244 time1 = posix_get_hw_cycle(); in ZTEST()
252 zassert_true(time2 - time1 == ONE_AND_HALF_TICKS, in ZTEST()
255 time2, time1, ONE_TICK_TIME); in ZTEST()
261 time1 = posix_get_hw_cycle(); in ZTEST()
269 zassert_true(time2 - time1 == ONE_TICK_TIME + 1 + WASTED_TIME, in ZTEST()
272 time2, time1, ONE_TICK_TIME); in ZTEST()
277 time1 = posix_get_hw_cycle(); in ZTEST()
285 zassert_true(time2 - time1 == ONE_AND_HALF_TICKS + WASTED_TIME, in ZTEST()
288 time2, time1, ONE_TICK_TIME); in ZTEST()