From 80e5fd6c0cc2ab9b7b2b008696dec24161645d57 Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Sat, 8 Jan 2011 21:56:40 +0000 Subject: Add a macro for logging timespec structures. (merges [2744]) --- lib/common/Logging.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'lib') diff --git a/lib/common/Logging.h b/lib/common/Logging.h index 86d37c22..bdcfc291 100644 --- a/lib/common/Logging.h +++ b/lib/common/Logging.h @@ -112,6 +112,11 @@ inline std::string GetNativeErrorMessage() (objectid) << \ std::dec +#define BOX_FORMAT_TIMESPEC(timespec) \ + timespec.tv_sec << \ + std::setw(6) << \ + timespec.tv_usec + #undef ERROR namespace Log -- cgit v1.2.3