diff options
| author | Paul Oliver <contact@pauloliver.dev> | 2026-04-06 22:22:41 +0200 |
|---|---|---|
| committer | Paul Oliver <contact@pauloliver.dev> | 2026-04-06 22:22:41 +0200 |
| commit | 0eadabbd642de773ce3187310eb4a52fd5dcd455 (patch) | |
| tree | 09b510b9376baf64140f37ffc3cf8fd7a21a52e5 /ui/daemon | |
| parent | b313dec6204d4c9b070af1e5eb0265509d523438 (diff) | |
UIs display steps per second
Diffstat (limited to 'ui/daemon')
| -rw-r--r-- | ui/daemon/ui.c | 5 |
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() { |
