From dd0264e7e5d707fcec0a9896f47dbd67b2b0036b Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Wed, 7 Nov 2012 00:08:14 +0000 Subject: BOX_FORMAT_MICROSECONDS doesn't make sense unless the digits to the right of the decimal point are padded properly. --- lib/common/Logging.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'lib') 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 -- cgit v1.2.3