summaryrefslogtreecommitdiff
path: root/lib/common/Logging.h
diff options
context:
space:
mode:
authorChris Wilson <chris+github@qwirx.com>2011-01-08 21:56:40 +0000
committerChris Wilson <chris+github@qwirx.com>2011-01-08 21:56:40 +0000
commit80e5fd6c0cc2ab9b7b2b008696dec24161645d57 (patch)
treecc02369d396a94ef75e40780cd656cf11fdf6ac8 /lib/common/Logging.h
parent74313ca88404608767b6202313cb9bee51d5975e (diff)
Add a macro for logging timespec structures. (merges [2744])
Diffstat (limited to 'lib/common/Logging.h')
-rw-r--r--lib/common/Logging.h5
1 files changed, 5 insertions, 0 deletions
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