May 2017
Intermediate to advanced
590 pages
17h 18m
English
This recipe is tightly related to the preceding one, Expressing time intervals with chrono::duration. If you did not go through that recipe before, you should do that before continuing with this one.
For the examples in this recipe, we will consider the following function that does nothing, but takes some time to execute:
void func(int const count = 100000000) { for (int i = 0; i < count; ++i); }
Read now
Unlock full access