From 7a8f35116d54c1b5b345908a43e8543203e258ba Mon Sep 17 00:00:00 2001 From: Kevron Rees Date: Thu, 10 Apr 2014 16:45:50 -0700 Subject: [PATCH] use monotonic clock --- lib/timestamp.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/timestamp.cpp b/lib/timestamp.cpp index 937f8f5..112a7d1 100644 --- a/lib/timestamp.cpp +++ b/lib/timestamp.cpp @@ -6,7 +6,7 @@ double amb::currentTime() { - auto tm = std::chrono::high_resolution_clock::now(); + auto tm = std::chrono::steady_clock::now(); double time = std::chrono::duration_cast(tm.time_since_epoch()).count() / 1000.00; -- 2.7.4