From 5deb7c55e1345e4d6cf198fb893931e134c0ee3b Mon Sep 17 00:00:00 2001 From: Gabi Melman Date: Mon, 21 Sep 2020 03:31:19 +0300 Subject: [PATCH] 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: