From da79f0cd1bdfac3f1c2d03a18f0728f4ce22bc63 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Wed, 6 Mar 2024 01:09:18 +0100 Subject: editor: don't record a timestamp from when the program was started --- editor/update.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'editor') 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); -- cgit v1.2.3