Keeping Time in C++: How to use the std::chrono API
Keeping track of time is a very important aspect of computer programs. Some common use cases are:
Measure/profile the performance of certain parts of code.
Do work at certain periods of time, from within a program.
Detect whether threads are in a d...
freecodecamp.org7 min read