std::chrono
Type-safe durations, clocks and time points.
Easy
using namespace std::chrono_literals; std::this_thread::sleep_for(250ms); — units are checked by the compiler.
Spotted a mistake or want to add detail? Suggest an improvement — Content Contributors' edits are reviewed by editors before they go live.
Discussion (0)
Sign in or join free to ask questions and discuss this topic.