Before C++11, the Standard Library did not contain any direct time-management support, so system developers had to use external sources. By external, we mean either an external library (for example, Boost (https://www.boost.org/)) or OS-specific APIs. We believe it's necessary that a system developer understands the concept of time in terms of Linux. This recipe will help you master concepts such as clock, time point, and duration by using the POSIX standard.
Learning the Linux timing
How to do it...
In this recipe, we'll write a program so that we can learn about the concepts of clock, time point, and duration in terms of Linux. Let's get started:
- In a shell, create a new file named...