summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorChris Wilson <chris+github@qwirx.com>2012-11-07 00:08:14 +0000
committerChris Wilson <chris+github@qwirx.com>2012-11-07 00:08:14 +0000
commitdd0264e7e5d707fcec0a9896f47dbd67b2b0036b (patch)
tree930450fed31bbeb6a033e1c3c05b8c08fb9966bb /lib
parentdbf45b1a70e2df2055429149420ec2dc82c537d8 (diff)
BOX_FORMAT_MICROSECONDS doesn't make sense unless the digits to the right
of the decimal point are padded properly.
Diffstat (limited to 'lib')
-rw-r--r--lib/common/Logging.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/common/Logging.h b/lib/common/Logging.h
index 1fb4b353..574677f1 100644
--- a/lib/common/Logging.h
+++ b/lib/common/Logging.h
@@ -146,6 +146,8 @@
#define BOX_FORMAT_MICROSECONDS(t) \
(int)((t) / 1000000) << "." << \
+ std::setw(6) << \
+ std::setfill('0') << \
(int)((t) % 1000000) << " seconds"
#undef ERROR