summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--editor/update.cpp4
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);