From 0eadabbd642de773ce3187310eb4a52fd5dcd455 Mon Sep 17 00:00:00 2001 From: Paul Oliver Date: Mon, 6 Apr 2026 22:22:41 +0200 Subject: UIs display steps per second --- ui/daemon/ui.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'ui/daemon/ui.c') diff --git a/ui/daemon/ui.c b/ui/daemon/ui.c index 28bade9..f5fe668 100644 --- a/ui/daemon/ui.c +++ b/ui/daemon/ui.c @@ -69,7 +69,10 @@ void step_block() { g_step_block >>= 1; } - g_info("Simulator running on step '%#lx'", g_steps); + float secs = (float)(end - beg) / (float)CLOCKS_PER_SEC; + float steps_per_sec = (float)g_step_block / secs; + + g_info("Simulator running on step %#lx @%.1f steps/s", g_steps, steps_per_sec); } int main() { -- cgit v1.2.1