aboutsummaryrefslogtreecommitdiff
path: root/ui/daemon/ui.c
diff options
context:
space:
mode:
authorPaul Oliver <contact@pauloliver.dev>2026-04-06 22:22:41 +0200
committerPaul Oliver <contact@pauloliver.dev>2026-04-06 22:22:41 +0200
commit0eadabbd642de773ce3187310eb4a52fd5dcd455 (patch)
tree09b510b9376baf64140f37ffc3cf8fd7a21a52e5 /ui/daemon/ui.c
parentb313dec6204d4c9b070af1e5eb0265509d523438 (diff)
UIs display steps per second
Diffstat (limited to 'ui/daemon/ui.c')
-rw-r--r--ui/daemon/ui.c5
1 files changed, 4 insertions, 1 deletions
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() {