Use std::chrono::high_resolution_clock for folly::Benchmark
Summary: `clock_gettime(CLOCK_REALTIME)` is based on `std::system_clock` on Windows, but that only has a resolution that's the same as `FILETIME` (100s of nanoseconds), so modernize things and use `std::chrono::high_resolution_clock` which is intended for this purpose. Reviewed By: yfeldblum Differential Revision: D4476671 fbshipit-source-id: 3db1debc8f408f689b5c9fe1966a72b8dad4da93
Showing
Please register or sign in to comment