From 6e8a1354a799f14fb068fdecd771daa64918d36d Mon Sep 17 00:00:00 2001 From: Tomas Kolda Date: Mon, 15 Jul 2019 12:15:21 -0700 Subject: [PATCH] Fix regression - 100% CPU - Regression for Windows 7 (#5557) Summary: Fixes https://github.com/facebook/rocksdb/issues/5552 Pull Request resolved: https://github.com/facebook/rocksdb/pull/5557 Differential Revision: D16266329 fbshipit-source-id: a8f6b50298a6f7c8d6c7e172bb26dd7eb6bd8a4d --- port/win/env_win.cc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/port/win/env_win.cc b/port/win/env_win.cc index 9abb14d67..7718ebd72 100644 --- a/port/win/env_win.cc +++ b/port/win/env_win.cc @@ -979,8 +979,7 @@ uint64_t WinEnvIO::NowMicros() { return li.QuadPart; } using namespace std::chrono; - return duration_cast( - high_resolution_clock::now().time_since_epoch()).count(); + return duration_cast(system_clock::now().time_since_epoch()).count(); } uint64_t WinEnvIO::NowNanos() {