Time Duration
This lesson gives a brief introduction to a time duration class template and explains it with the help of interactive examples.
We'll cover the following...
We'll cover the following...
Time duration std::chrono::duration is a class template that consists of the type of the tick Rep and the length of a tick Period.
template<class Rep,class Period = std::ratio<1>> class duration;
The tick length is std::ratio<1> by default; ...