Switched from chrono to ctime since some compilers reported problems
with std::chrono::steady_clock.