-
Book Overview & Buying
-
Table Of Contents
-
Feedback & Rating

Modern C++ Programming Cookbook
By :

Working with times and dates is a common operation regardless of the programming language. C++11 provides a flexible date and time library as part of the standard library that enables us to define time points and time intervals. This library, called chrono
, is a general purpose utility library designed to work with a timer and clocks that can be different on different systems and, therefore, be precision-neutral. The library is available in the <chrono>
header in the std::chrono
namespace and defines and implements several components, as follows:
In this recipe, we will see how to work with durations.
This recipe is not intended as a complete reference to the duration
class. It is recommended that you consult additional resources for that purpose (the...