Skip to Main Content
C++ Concurrency in Action, Second Edition
book

C++ Concurrency in Action, Second Edition

by Anthony Williams
February 2019
Intermediate to advanced content levelIntermediate to advanced
592 pages
20h 37m
English
Manning Publications
Content preview from C++ Concurrency in Action, Second Edition

Appendix D. C++ Thread Library reference

D.1. The <chrono> header

The <chrono> header provides classes for representing points in time, durations, and clock classes, which act as a source of time_points. Each clock has an is_steady static data member, which indicates whether it’s a steady clock that advances at a uniform rate (and can’t be adjusted). The std::chrono::steady_clock class is the only clock guaranteed to be steady.

  • Header contents
    namespace std
    {
       namespace chrono
       {
           template<typename Rep,typename Period = ratio<1>>
           class duration;
           template<
               typename Clock,
               typename Duration = typename Clock::duration>
           class time_point;
           class system_clock;
           class steady_clock;
           typedef unspecified-clock-type high_resolution_clock;
       }
    }

D.1.1. ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

C++ Concurrency in Action

C++ Concurrency in Action

Anthony Williams
Programming Rust, 2nd Edition

Programming Rust, 2nd Edition

Jim Blandy, Jason Orendorff, Leonora F. S. Tindall

Publisher Resources

ISBN: 9781617294693Supplemental ContentPublisher SupportOtherPublisher WebsiteSupplemental ContentPurchase Link