mirror of
https://github.com/tio/tio.git
synced 2026-05-01 14:57:59 +02:00
Consolidate timestamp implementation in one file
This commit is contained in:
parent
a85cfcf3ef
commit
ba2d49d2f7
10 changed files with 202 additions and 139 deletions
|
|
@ -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
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue