Reduce coupling to date.h by calling C++17 chrono functions

This commit is contained in:
Howard Hinnant
2021-02-18 14:09:49 -05:00
committed by manojsdoshi
parent 64e4a89470
commit 9932a19139
15 changed files with 34 additions and 48 deletions

View File

@@ -288,7 +288,7 @@ PerfLogImp::report()
lastLog_ = present;
Json::Value report(Json::objectValue);
report[jss::time] = to_string(date::floor<microseconds>(present));
report[jss::time] = to_string(floor<microseconds>(present));
{
std::lock_guard lock{counters_.jobsMutex_};
report[jss::workers] =