aboutsummaryrefslogtreecommitdiffstats
path: root/http_connection.h
diff options
context:
space:
mode:
authoripkn <ipknhama@gmail.com>2014-05-02 01:28:20 -0400
committeripkn <ipknhama@gmail.com>2014-05-02 01:28:20 -0400
commit62ace917d325040bbf3015536d2ad3725b711c6d (patch)
treeba0b931ab9179e29a6388229a345f2d31008baf8 /http_connection.h
parent81bd1e1fb6cb2a74c4e372410fb419cfc94991e0 (diff)
downloadcrow-62ace917d325040bbf3015536d2ad3725b711c6d.tar.gz
crow-62ace917d325040bbf3015536d2ad3725b711c6d.zip
change system_clock to steady_clock
Diffstat (limited to 'http_connection.h')
-rw-r--r--http_connection.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/http_connection.h b/http_connection.h
index 99b1fb3..b995523 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;