Switch to std::chrono for time measuring