From 965d9d50b8cbb413de5e834b5b83ddbb682d0f1d Mon Sep 17 00:00:00 2001 From: Igor Canadi Date: Fri, 24 Oct 2014 11:58:15 -0700 Subject: [PATCH] Fix timing --- util/env_posix.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/util/env_posix.cc b/util/env_posix.cc index 177932bcd..76ba4a6bd 100644 --- a/util/env_posix.cc +++ b/util/env_posix.cc @@ -1351,8 +1351,8 @@ class PosixEnv : public Env { } virtual uint64_t NowMicros() { - return std::chrono::duration_cast( - std::chrono::steady_clock::now().time_since_epoch()).count(); + return std::chrono::duration_cast( + std::chrono::system_clock::now().time_since_epoch()).count(); } virtual uint64_t NowNanos() {