summaryrefslogtreecommitdiff
path: root/lib/common/Logging.h
diff options
context:
space:
mode:
authorChris Wilson <chris+github@qwirx.com>2012-11-06 23:57:03 +0000
committerChris Wilson <chris+github@qwirx.com>2012-11-06 23:57:03 +0000
commitcb0a6924b984678f1b7a2db92a897a0f99b8c96a (patch)
tree8f4854a38d838017eda8aae4f97249bfddef666e /lib/common/Logging.h
parentc24770d99f2ec5bf18c035a1ff97c48c32442d32 (diff)
Convert FORMAT_MICROSECONDS into a global utility macro.
Diffstat (limited to 'lib/common/Logging.h')
-rw-r--r--lib/common/Logging.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/common/Logging.h b/lib/common/Logging.h
index 2318e142..1fb4b353 100644
--- a/lib/common/Logging.h
+++ b/lib/common/Logging.h
@@ -144,6 +144,10 @@
std::setw(6) << \
timespec.tv_usec
+#define BOX_FORMAT_MICROSECONDS(t) \
+ (int)((t) / 1000000) << "." << \
+ (int)((t) % 1000000) << " seconds"
+
#undef ERROR
namespace Log