1
0
mirror of git://git.gnupg.org/gnupg.git synced 2024-12-22 10:19:57 +01:00

Make log_clock easier to read.

* common/logging.c (log_clock): Print in microseconds.
This commit is contained in:
Werner Koch 2013-01-08 14:35:27 +01:00
parent f3f5721e68
commit 5c565512b8

View File

@ -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);