From 9ff017f1d4c1502fca9797aa4b38351c97e57982 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Sat, 2 Mar 2024 10:20:40 +0100 Subject: a --- editor/update.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'editor/update.cpp') diff --git a/editor/update.cpp b/editor/update.cpp index 8c3349e5..beb7c048 100644 --- a/editor/update.cpp +++ b/editor/update.cpp @@ -132,16 +132,16 @@ void app::do_emit_timestamp() char buf[fm_DATETIME_BUF_SIZE]; format_datetime_to_string(buf); - if (time >= 1e5f) + if (time >= 1e5) + fm_debug("%s%s0x%08x %.1f" " s", buf, prefix, counter++, time*1e-3); + else if (time >= 1e4) fm_debug("%s%s0x%08x %.2f" " s", buf, prefix, counter++, time*1e-3); - else if (time >= 1e4f) - fm_debug("%s%s0x%08x %.2f" " s", buf, prefix, counter++, time*1e-3); - else if (time >= 1e3f) + else if (time >= 1e3) fm_debug("%s%s0x%08x %.2f" " ms", buf, prefix, counter++, time); else if (time > 0) fm_debug("%s%s0x%08x %.4f" " ms", buf, prefix, counter++, time); else - fm_debug("%s%s0x%08x 0" " ms", buf, prefix, counter++); + fm_debug("%s%s0x%08x 0 ms", buf, prefix, counter++); _timestamp = now.stamp; } -- cgit v1.2.3