diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2024-03-06 01:09:18 +0100 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2024-03-06 01:09:18 +0100 |
commit | da79f0cd1bdfac3f1c2d03a18f0728f4ce22bc63 (patch) | |
tree | 799d8969be7dbb148dfbdb2405a49963b3d29e70 /editor | |
parent | 1c0351986e0e70040a65733fb2bdd6d0781d1135 (diff) |
editor: don't record a timestamp from when the program was started
Diffstat (limited to 'editor')
-rw-r--r-- | editor/update.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/editor/update.cpp b/editor/update.cpp index 45772be2..6e5269cc 100644 --- a/editor/update.cpp +++ b/editor/update.cpp @@ -129,7 +129,9 @@ void app::do_emit_timestamp() static unsigned counter; const auto now = Time::now(); - const auto time = (double)Time::to_milliseconds(now - Time{_timestamp}); + auto time = (double)Time::to_milliseconds(now - Time{_timestamp}); + if (counter == 0) + time = 0; char buf[fm_DATETIME_BUF_SIZE]; format_datetime_to_string(buf); |