Replace platform-specific timing functions with std::chrono functionality