We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7d8ea99 commit 10c73a4Copy full SHA for 10c73a4
1 file changed
tests/benchmarks/kalman_benchmark/src/main.c
@@ -142,6 +142,15 @@ int main(void)
142
LOG_INF("Iterations: %d (warmup: %d)", BENCH_ITERATIONS,
143
WARMUP_ITERATIONS);
144
145
+#ifdef CONFIG_NATIVE_SIMULATOR
146
+ /* Debug: verify get_host_us_time() returns a non-zero advancing value */
147
+ uint64_t dbg0 = bench_ns();
148
+ uint64_t dbg1 = bench_ns();
149
+ LOG_INF("bench_ns debug: t0_hi=%u t0_lo=%u dt_ns=%llu",
150
+ (uint32_t)(dbg0 >> 32), (uint32_t)(dbg0 & 0xFFFFFFFF),
151
+ dbg1 - dbg0);
152
+#endif
153
+
154
/* ----- Hand-coded Kalman benchmark ----- */
155
struct hand_kf hkf;
156
int32_t true_val = 0;
0 commit comments