From 62ace917d325040bbf3015536d2ad3725b711c6d Mon Sep 17 00:00:00 2001 From: ipkn Date: Fri, 2 May 2014 01:28:20 -0400 Subject: [PATCH] change system_clock to steady_clock --- http_connection.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/http_connection.h b/http_connection.h index 99b1fb3d4..b995523ab 100644 --- a/http_connection.h +++ b/http_connection.h @@ -153,12 +153,12 @@ namespace crow static std::string get_cached_date_str() { using namespace std::chrono; - thread_local auto last = system_clock::now(); + thread_local auto last = steady_clock::now(); thread_local std::string date_str = DateTime().str(); - if (system_clock::now() - last >= seconds(1)) + if (steady_clock::now() - last >= seconds(1)) { - last = system_clock::now(); + last = steady_clock::now(); date_str = DateTime().str(); } return date_str;