In this chapter, we learned how to use both the POSIX and C++ time interfaces to read the system clock, and a steady clock for more precise timing. This chapter concluded with two examples; the first example demonstrated how to read the system clock and output the results to the console on a user-defined interval, and the second demonstrated how to benchmark software using the C++ high-resolution timer. In the next chapter, we will learn how to program both POSIX and C++ threads with examples that build upon the lessons learned in this chapter.
In the next chapter, we will discuss C++ threads, synchronization primitives such as mutexes, and how to program them.