fixed use of std::chrono