diff options
author | Chris Wilson <chris+github@qwirx.com> | 2014-09-18 20:28:28 +0000 |
---|---|---|
committer | Chris Wilson <chris+github@qwirx.com> | 2014-09-18 20:28:28 +0000 |
commit | 36c310997220d613f5d8f4e07c54a9de559bfc5b (patch) | |
tree | de38321e91f46ed3e0bbc4f5621e9ec2e55f6307 /lib/common/Logging.h | |
parent | f6a34da65b068fd151c17b5b2dc6276280afdd28 (diff) |
Fix formatting of subsecond timestamps in log messages
Diffstat (limited to 'lib/common/Logging.h')
-rw-r--r-- | lib/common/Logging.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/common/Logging.h b/lib/common/Logging.h index 7cf9d46c..ff557430 100644 --- a/lib/common/Logging.h +++ b/lib/common/Logging.h @@ -139,7 +139,9 @@ #define BOX_FORMAT_TIMESPEC(timespec) \ timespec.tv_sec << \ + "." << \ std::setw(6) << \ + std::setfill('0') << \ timespec.tv_usec #define BOX_FORMAT_MICROSECONDS(t) \ |