From f047271cb963c62663687d63b2f7cf8dd5edfbb7 Mon Sep 17 00:00:00 2001 From: "Ondrej Zajicek (work)" Date: Tue, 6 Jun 2017 16:47:30 +0200 Subject: Timers: Parse and format functions for microsecond times Date/time output (e.g. in logs, show commands) can use %f to specify subsecond time. By default, millisecond precision is used in output. --- sysdep/unix/timer.h | 12 ------------ 1 file changed, 12 deletions(-) (limited to 'sysdep/unix/timer.h') diff --git a/sysdep/unix/timer.h b/sysdep/unix/timer.h index 1c4f6e3b..495d10c7 100644 --- a/sysdep/unix/timer.h +++ b/sysdep/unix/timer.h @@ -45,18 +45,6 @@ static inline timer * tm_new_set(pool *p, void (*hook)(timer *), void *data, uin { return tm2_new_init(p, hook, data, rec S_, rand S_); } -struct timeformat { - char *fmt1, *fmt2; - bird_clock_t limit; -}; - -bird_clock_t tm_parse_date(char *); /* Convert date to bird_clock_t */ -bird_clock_t tm_parse_datetime(char *); /* Convert date to bird_clock_t */ - -#define TM_DATETIME_BUFFER_SIZE 32 /* Buffer size required by tm_format_datetime */ -void -tm_format_datetime(char *x, struct timeformat *fmt_spec, bird_clock_t t); - #define TIME_INFINITY ((s64) 0x7fffffffffffffff) -- cgit v1.2.3