Book Image

Learning Boost C++ Libraries

By : Arindam Mukherjee
Book Image

Learning Boost C++ Libraries

By: Arindam Mukherjee

Overview of this book

Table of Contents (19 chapters)
Learning Boost C++ Libraries
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Chapter 8. Date and Time Libraries

This is a short chapter that shows you how to use different Boost libraries for performing basic date and time calculations. Most practical software use date and time measurements in some form. Applications compute current date and time to produce chronological logs of application activity. Specialized programs compute schedules for jobs based on complex scheduling policies, and wait for specific points in time, or time intervals to elapse. Sometimes, applications even monitor their own performance and speed of execution, taking remedial steps as needed or raising notifications.

In this chapter, we look at Boost libraries for performing date and time calculations, and measuring code performance. These topics are divided into the following sections:

  • Date and time calculations with Boost Date Time

  • Using Boost Chrono to measure time

  • Measuring program performance using Boost Timer