diff options
| author | Stanislaw Halik <sthalik@misaki.pl> | 2024-03-02 10:20:40 +0100 |
|---|---|---|
| committer | Stanislaw Halik <sthalik@misaki.pl> | 2024-03-02 10:20:40 +0100 |
| commit | 9ff017f1d4c1502fca9797aa4b38351c97e57982 (patch) | |
| tree | 5b122d52ddec31c988e23a70531a968466e73bf6 /editor/update.cpp | |
| parent | 58d95d559276b556f584411d5c3ea0a986f3fbc4 (diff) | |
a
Diffstat (limited to 'editor/update.cpp')
| -rw-r--r-- | editor/update.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
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; } |
