Home
last modified time | relevance | path

Searched refs:diff (Results 1 – 18 of 18) sorted by relevance

/tests/boards/native_sim/rtc/src/
A Dmain.c55 int64_t diff, error; in ZTEST() local
92 diff = end_time - start_time; in ZTEST()
93 error = diff / 1000 - WAIT_TIME / acc_ratio; in ZTEST()
99 diff / 1000.0, in ZTEST()
112 error = diff - WAIT_TIME * 1000; in ZTEST()
117 diff / 1000.0, in ZTEST()
124 diff = native_rtc_gettime_us(RTC_CLOCK_BOOT) - in ZTEST()
127 zassert_true(diff == WAIT_TIME * 1000, in ZTEST()
133 zassert_true(diff == WAIT_TIME * 1000, in ZTEST()
151 int64_t diff, error; in ZTEST() local
[all …]
/tests/subsys/portability/cmsis_rtos_v1/src/
A Dkernel_apis.c57 uint32_t start_time, stop_time, diff, max, min; in ZTEST() local
63 diff = (uint32_t)k_cyc_to_ns_floor64(stop_time - in ZTEST()
69 zassert_true(diff <= max && diff >= min, in ZTEST()
71 start_time, stop_time, diff, WAIT_TIME_US); in ZTEST()
/tests/kernel/timer/timer_behavior/pytest/
A Dsaleae_logic2.py55 diff = np.diff(data)
57 mean = np.mean(diff)
58 std = np.std(diff)
59 var = np.var(diff)
60 minimum = np.min(diff)
61 maximum = np.max(diff)
65 'max': maximum, 'total_time': total_time}, len(diff)
/tests/kernel/threads/no-multithreading/src/
A Dmain.c28 int64_t diff = k_uptime_get() - now; in ZTEST() local
30 zassert_within(diff, 10, 2); in ZTEST()
62 int64_t now, diff; in ZTEST() local
73 diff = k_uptime_get() - now; in ZTEST()
75 zassert_within(diff, 10, 2, "Unexpected time passed: %d ms", (int)diff); in ZTEST()
/tests/kernel/timer/timer_monotonic/src/
A Dmain.c55 int32_t diff; in ZTEST() local
70 diff = t_now - t_last; in ZTEST()
72 "i = %u\n", diff, t_last, t_now, i); in ZTEST()
/tests/kernel/timer/timer_behavior/src/
A Djitter_drift.c163 uint64_t diff = periodic_diff(periodic_data[i + 1], periodic_data[i]); in do_test_using() local
165 if (diff == 0) { in do_test_using()
168 total_cycles += diff; in do_test_using()
169 min_cyc = MIN(diff, min_cyc); in do_test_using()
170 max_cyc = MAX(diff, max_cyc); in do_test_using()
194 uint64_t diff = periodic_diff(periodic_data[i + 1], periodic_data[i]); in do_test_using() local
196 if (diff != 0) { in do_test_using()
197 double mean_cyc_diff = (double)diff - mean_cyc; in do_test_using()
198 double mean_us_diff = cycles_to_us(diff) - mean_us; in do_test_using()
/tests/boards/intel_adsp/smoke/src/
A Dmain.c21 uint32_t cyc0, cyc1, hz, diff; in ZTEST() local
41 diff = abs(hz - CONFIG_SYS_CLOCK_HW_CYCLES_PER_SEC); in ZTEST()
42 zassert_true((hz / MIN(1, diff)) > 100, "clock rate wrong"); in ZTEST()
A Dcpus.c123 int32_t diff = MAX(1, abs(clk_ratios[i] - clk_ratios[cpu])); in core_smoke() local
125 zassert_true((clk_ratios[cpu] / diff) > 100, in core_smoke()
/tests/bsim/bluetooth/host/privacy/central/src/
A Dtester.c43 int64_t new_time, diff, time_diff_ms, rpa_timeout_ms; in scanned_cb() local
55 diff = time_diff_ms - rpa_timeout_ms; in scanned_cb()
57 diff = rpa_timeout_ms - time_diff_ms; in scanned_cb()
60 if (diff > rpa_timeout_ms * 0.10) { in scanned_cb()
/tests/kernel/fifo/fifo_timeout/src/
A Dmain.c103 uint32_t stop_time, diff; in is_timeout_in_range() local
106 diff = (uint32_t)k_cyc_to_ns_floor64(stop_time - in is_timeout_in_range()
108 diff = diff / USEC_PER_MSEC; in is_timeout_in_range()
109 return timeout <= diff; in is_timeout_in_range()
/tests/benchmarks/wait_queues/src/
A Dmain.c150 uint64_t diff; in compute_and_report_stats() local
173 diff = (average > tmp) ? (average - tmp) : (tmp - average); in compute_and_report_stats()
175 std_dev += (diff * diff); in compute_and_report_stats()
/tests/benchmarks/sched_queues/src/
A Dmain.c163 uint64_t diff; in compute_and_report_stats() local
184 diff = (average > tmp) ? (average - tmp) : (tmp - average); in compute_and_report_stats()
186 std_dev += (diff * diff); in compute_and_report_stats()
/tests/drivers/build_all/comparator/
A Dtestcase.yaml17 drivers.build_all.comparator.nrf_comp.diff:
19 - DTC_OVERLAY_FILE="nrf_comp/diff.overlay"
/tests/kernel/timer/timer_api/src/
A Dtimer_convert.c273 int64_t diff = (int64_t)(val * to_hz - result * from_hz); in test_conversion() local
287 zassert_true(diff <= maxdiff && diff >= mindiff, in test_conversion()
291 result, result, diff, diff, mindiff, maxdiff); in test_conversion()
/tests/kernel/lifo/lifo_usage/src/
A Dmain.c110 uint32_t stop_time, diff; in is_timeout_in_range() local
113 diff = k_cyc_to_ms_floor32(stop_time - start_time); in is_timeout_in_range()
114 return timeout <= diff; in is_timeout_in_range()
/tests/drivers/timer/nrf_rtc_timer/src/
A Dmain.c75 uint64_t diff = (now - expire_time); in timeout_handler() local
77 zassert_true(diff <= data->delay, in timeout_handler()
/tests/drivers/counter/counter_basic_api/src/
A Dtest_counter.c379 uint32_t diff; in alarm_handler() local
387 diff = (now < counter) ? in alarm_handler()
390 diff = (now > counter) ? in alarm_handler()
394 zassert_true(diff <= counter_us_to_ticks(dev, processing_limit_us), in alarm_handler()
/tests/net/6lo/src/
A Dmain.c1077 int diff; in test_6lo() local
1098 diff = net_6lo_uncompress_hdr_diff(pkt); in test_6lo()
1099 zassert_true(diff == data->hdr_diff, "unexpected HDR diff"); in test_6lo()

Completed in 112 milliseconds