use monotonic clock
authorKevron Rees <kevron.m.rees@intel.com>
Thu, 10 Apr 2014 23:45:50 +0000 (16:45 -0700)
committerKevron Rees <kevron.m.rees@intel.com>
Thu, 10 Apr 2014 23:45:50 +0000 (16:45 -0700)
lib/timestamp.cpp

index 937f8f5..112a7d1 100644 (file)
@@ -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<std::chrono::milliseconds>(tm.time_since_epoch()).count() / 1000.00;