June 2017
Intermediate to advanced
532 pages
12h 59m
English
While this section is all about converting between different time units, we first had to choose one of the three available clock objects. There is generally the choice between system_clock, steady_clock, and high_resolution_clock in the std::chrono namespace. What are the differences between them? Let's have a closer look:
| Clock | Characteristics |
| system_clock | This represents the system-wide real-time "wall" clock. It is the right choice if we want to obtain the local time. |
| steady_clock | This clock is promised to be monotonic. This means that it will never be set back by any amount of time. This can happen to other clocks when their time is corrected by minimal amounts, or even when the time is switched between winter and ... |
Read now
Unlock full access