diff options
author | Werner Koch <[email protected]> | 2013-01-07 15:51:24 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2013-01-07 15:51:24 +0000 |
commit | 0baedfd25a4bdc6c8e7aefbd67006b063e2dc33f (patch) | |
tree | a65ed0efab34ac3296b69a54d78bfccd1e7d0968 /common/logging.h | |
parent | gpg: Allow searching for user ids in a keybox. (diff) | |
download | gnupg-0baedfd25a4bdc6c8e7aefbd67006b063e2dc33f.tar.gz gnupg-0baedfd25a4bdc6c8e7aefbd67006b063e2dc33f.zip |
New function log_clock.
* common/logging.c (log_clock): New.
* g10/gpg.c (set_debug): Print clock debug flag.
* g10/options.h (DBG_CLOCK_VALUE, DBG_CLOCK): New.
--
To actually use log_clock you need to enable the code in
logginc.c:log_check() and link against librt. --debug 4096 may then
be used to enable it at runtime.
Diffstat (limited to 'common/logging.h')
-rw-r--r-- | common/logging.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/common/logging.h b/common/logging.h index b0d662b71..89913e6e5 100644 --- a/common/logging.h +++ b/common/logging.h @@ -96,5 +96,7 @@ void log_flush (void); by the hexdump and a final LF. */ void log_printhex (const char *text, const void *buffer, size_t length); +void log_clock (const char *string); + #endif /*LIBJNLIB_LOGGING_H*/ |