Consolidate timestamp implementation in one file

This commit is contained in:
Martin Lund 2022-09-10 23:29:23 +02:00
parent a85cfcf3ef
commit ba2d49d2f7
10 changed files with 202 additions and 139 deletions

View file

@ -31,6 +31,7 @@
#include "options.h"
#include "print.h"
#include "error.h"
#include "timestamp.h"
static char error[2][1000];
static bool in_session = false;
@ -54,7 +55,7 @@ void error_printf_(const char *format, ...)
{
putchar('\n');
}
ansi_error_printf("[%s] %s", current_time(), line);
ansi_error_printf("[%s] %s", timestamp_current_time(), line);
}
else
{