By using this site, you agree to this use. See details.
Open Source Your Knowledge, Become a Contributor
Technology knowledge has to be shared and made accessible for free. Join the movement.
Measure Time Intervals
C++11 provides a flexible date and time library as part of the standard library that allows to define time points and time intervals. The library is called
chrono and is available in the
<chrono> header in the
Define user defined literals for day/days and week/weeks and use them together with the chrono literals to define the intervals in the exercise above.