Search icon CANCEL
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Concurrency with Modern C++

You're reading from   Concurrency with Modern C++ What every professional C++ programmer should know about concurrency.

Arrow left icon
Product type Paperback
Published in Dec 2019
Publisher
ISBN-13 9781839211027
Length 543 pages
Edition 1st Edition
Languages
Arrow right icon
Author (1):
Arrow left icon
Rainer Grimm Rainer Grimm
Author Profile Icon Rainer Grimm
Rainer Grimm
Arrow right icon
View More author details
Toc

Table of Contents (19) Chapters Close

1. Reader Testimonials FREE CHAPTER
2. Introduction 3. Concurrency with Modern C++ 4. Memory Model 5. Multithreading 6. Parallel Algorithms of the Standard Template Library 7. The Near Future: C++20 8. Case Studies 9. The Future: C++23 10. Patterns and Best Practices 11. Synchronisation Patterns 12. Concurrent Architecture 13. Best Practices 14. Lock-Based Data Structures 15. Challenges 16. The Time Library 17. CppMem - An Overview 18. Glossary 19. Index

Time Point

The time point std::chrono::time_point is defined by the starting point (epoch) and the additional time duration. The class template consists of the two components: clock and time duration. By default, the time duration is derived from the clock.

The class template std::chrono::time_point
template<
  class Clock,
  class Duration= typename Clock::duration
>
class time_point;

The following four special time points depend on the clock:

  • epoch: the starting point of the clock
  • now: the current time
  • min: the minimum time point that the clock can have
  • max: the maximum time point that the clock can have

The accuracy of the minimum and maximum time point depends on the clock used: std::system::system_clock, std::chrono::steady_clock, or std::chrono::high_resolution_clock.

C++ gives no guarantee about the accuracy, the starting point or the valid time range of a clock. The starting point of std::chrono::system_clock is typically 1st January 1970, the...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime