summaryrefslogtreecommitdiffstats
path: root/common
diff options
context:
space:
mode:
Diffstat (limited to 'common')
-rw-r--r--common/msg.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/common/msg.c b/common/msg.c
index e904068af8..48767e89ec 100644
--- a/common/msg.c
+++ b/common/msg.c
@@ -316,7 +316,7 @@ static void print_terminal_line(struct mp_log *log, int lev,
set_msg_color(stream, lev);
if (root->show_time)
- fprintf(stream, "[%10.6f] ", (mp_time_ns() - MP_START_TIME) / 1e9);
+ fprintf(stream, "[%10.6f] ", mp_time_sec());
const char *prefix = log->prefix;
if ((lev >= MSGL_V) || root->verbose || root->module)
@@ -551,7 +551,7 @@ static void *log_file_thread(void *p)
if (e) {
pthread_mutex_unlock(&root->log_file_lock);
fprintf(root->log_file, "[%8.3f][%c][%s] %s",
- (mp_time_ns() - MP_START_TIME) / 1e9,
+ mp_time_sec(),
mp_log_levels[e->level][0], e->prefix, e->text);
fflush(root->log_file);
pthread_mutex_lock(&root->log_file_lock);