From 5c565512b8af73bee2a176530663154b9277ef1c Mon Sep 17 00:00:00 2001 From: Werner Koch Date: Tue, 8 Jan 2013 14:35:27 +0100 Subject: Make log_clock easier to read. * common/logging.c (log_clock): Print in microseconds. --- common/logging.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'common/logging.c') diff --git a/common/logging.c b/common/logging.c index a8acb5299..cdfd6597c 100644 --- a/common/logging.c +++ b/common/logging.c @@ -876,7 +876,7 @@ log_clock (const char *string) if (!initial) initial = now; - log_debug ("[%llu] %s", now - initial, string); + log_debug ("[%6llu] %s", (now - initial)/1000, string); #else /* You need to link with -ltr to enable the above code. */ log_debug ("[not enabled in the source] %s", string); -- cgit v1.2.3