From 9e8c8c1113908b8e8d2af0ff1e6bcdbb3fb182a3 Mon Sep 17 00:00:00 2001 From: Sergey Kovalevich Date: Tue, 22 Dec 2015 07:21:43 +0300 Subject: [PATCH] added SPDLOG_CLOCK_MONOTONIC example entry in tweakme file --- include/spdlog/tweakme.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/include/spdlog/tweakme.h b/include/spdlog/tweakme.h index f1365147..56dbb563 100644 --- a/include/spdlog/tweakme.h +++ b/include/spdlog/tweakme.h @@ -17,6 +17,14 @@ /////////////////////////////////////////////////////////////////////////////// +/////////////////////////////////////////////////////////////////////////////// +// Under Linux, the much faster CLOCK_MONOTONIC clock can be used. +// This clock is more accurate than CLOCK_REALTIME_COARSE and faster than regular clock. +// Uncomment to use it instead of the regular clock. +// #define SPDLOG_CLOCK_MONOTONIC +/////////////////////////////////////////////////////////////////////////////// + + /////////////////////////////////////////////////////////////////////////////// // Uncomment if date/time logging is not needed. // This will prevent spdlog from quering the clock on each log call.