1
0
Fork 0

port fix for NowMicros (#9482)

This commit is contained in:
Jan 2019-07-16 15:28:30 +02:00 committed by KVS85
parent a52ffb4e34
commit ae1133e2ad
1 changed files with 1 additions and 2 deletions

View File

@ -979,8 +979,7 @@ uint64_t WinEnvIO::NowMicros() {
return li.QuadPart;
}
using namespace std::chrono;
return duration_cast<microseconds>(
high_resolution_clock::now().time_since_epoch()).count();
return duration_cast<microseconds>(system_clock::now().time_since_epoch()).count();
}
uint64_t WinEnvIO::NowNanos() {