From 5deb7c55e1345e4d6cf198fb893931e134c0ee3b Mon Sep 17 00:00:00 2001 From: Gabi Melman Date: Mon, 21 Sep 2020 03:31:19 +0300 Subject: [PATCH 1/2] Fix #1676 --- include/spdlog/stopwatch.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/spdlog/stopwatch.h b/include/spdlog/stopwatch.h index b84fb61b..bb976b19 100644 --- a/include/spdlog/stopwatch.h +++ b/include/spdlog/stopwatch.h @@ -5,7 +5,7 @@ #include -// Stopwatch support for spdlog (using std::chrono::high_resolution_clock). +// Stopwatch support for spdlog (using std::chrono::steady_clock). // Displays elapsed seconds since construction as double. // // Usage: @@ -27,7 +27,7 @@ namespace spdlog { class stopwatch { - using clock = std::chrono::high_resolution_clock; + using clock = std::chrono::steady_clock; std::chrono::time_point start_tp_; public: From 99b8c5d3795c58318d84a894f268b045d2f669a3 Mon Sep 17 00:00:00 2001 From: Gabi Melman Date: Thu, 24 Sep 2020 10:04:07 +0300 Subject: [PATCH 2/2] Update bin_to_hex.h --- include/spdlog/fmt/bin_to_hex.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/spdlog/fmt/bin_to_hex.h b/include/spdlog/fmt/bin_to_hex.h index 5393dcac..1e2b054b 100644 --- a/include/spdlog/fmt/bin_to_hex.h +++ b/include/spdlog/fmt/bin_to_hex.h @@ -9,7 +9,7 @@ // // Support for logging binary data as hex -// format flags: +// format flags, any combination of the followng: // {:X} - print in uppercase. // {:s} - don't separate each byte with space. // {:p} - don't print the position on each line start.