summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--DOCS/man/options.rst2
-rw-r--r--common/msg.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/DOCS/man/options.rst b/DOCS/man/options.rst
index b2e41bca76..ed0b38c719 100644
--- a/DOCS/man/options.rst
+++ b/DOCS/man/options.rst
@@ -4493,7 +4493,7 @@ Terminal
``--msg-time``
Prepend timing information to each console message. The time is in
- microseconds since the player process was started (technically, slightly
+ seconds since the player process was started (technically, slightly
later actually), using a monotonic time source depending on the OS. This
is ``CLOCK_MONOTONIC`` on sane UNIX variants.
diff --git a/common/msg.c b/common/msg.c
index 7f8754b308..7e271d1b8b 100644
--- a/common/msg.c
+++ b/common/msg.c
@@ -306,7 +306,7 @@ static void print_terminal_line(struct mp_log *log, int lev,
set_msg_color(stream, lev);
if (root->show_time)
- fprintf(stream, "[%" PRId64 "] ", mp_time_us() - MP_START_TIME);
+ fprintf(stream, "[%10.6f] ", (mp_time_us() - MP_START_TIME) / 1e6);
const char *prefix = log->prefix;
if ((lev >= MSGL_V) || root->verbose || root->module)