From fb3facf05268b43dbdf31994cb8a7ee192883874 Mon Sep 17 00:00:00 2001 From: wm4 Date: Fri, 18 Sep 2020 14:26:10 +0200 Subject: msg: make --msg-time show time in seconds More readable, similar to what --log-file will use (although the terminal code shows microseconds and uses less left padding). --- common/msg.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'common') 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) -- cgit v1.2.3