From 4b053b9a3892d9ecd9497d3c8cabd0c9b1200b73 Mon Sep 17 00:00:00 2001 From: Rodrigo Arias Date: Wed, 8 Mar 2023 16:32:44 +0100 Subject: [PATCH] Clear average line and increase elapsed precision --- src/emu/emu_stat.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/emu/emu_stat.c b/src/emu/emu_stat.c index 3365703..b43d2ba 100644 --- a/src/emu/emu_stat.c +++ b/src/emu/emu_stat.c @@ -56,10 +56,10 @@ emu_stat_report(struct emu_stat *stat, struct player *player, int last) if (last) { int tmin = (int) (time_elapsed / 60.0); int tsec = (int) ((time_elapsed / 60.0 - tmin) * 60.0); - info("%5.1f%% done at avg %.0f kev/s\n", + info("%5.1f%% done at avg %.0f kev/s \n", progress * 100.0, avgspeed * 1e-3, tmin, tsec); - info("processed %ld input events in %d min %d s\n", - nprocessed, tmin, tsec); + info("processed %ld input events in %.2f s\n", + nprocessed, time_elapsed); } else { int tmin = (int) (time_left / 60.0); int tsec = (int) ((time_left / 60.0 - tmin) * 60.0);