Loading…
CppCon 2016 has ended
Back To Schedule
Monday, September 19 • 2:00pm - 3:00pm
A <chrono> Tutorial

Log in to save this to your schedule, view media, leave feedback and see who's attending!

This talk starts very simple: with seconds. It explains exactly what a second is: what is under the hood, what it can do, and most importantly how and why it fails at compile time. Failing at compile time, instead of at run time is the critical design philosophy that runs through chrono.

Slowly the talk adds complexity: other units of time duration, custom time durations, conversions among durations, points in time, etc. With each addition, another layer of the chrono onion is peeled away.

By the end of the talk, you will understand both the importance of the simplicity of chrono, and the power available to you if you avoid the typical mistakes beginners make when first learning chrono. Even experts will find at least one undiscovered gem in this talk to take back to their own code. And you may see ways to transfer some of the chrono design principles into your own designs.

People who attend this talk will be especially well prepared for my later talk about time zones.

This talk is a prequel to my CppCon 2015 talk: https://www.youtube.com/watch?v=tzyGjOm8AKo

Now available at: https://www.youtube.com/watch?v=P32hvk8b13M

Speakers
avatar for Howard Hinnant

Howard Hinnant

Senior Software Engineer, Ripple
Lead author of several C++11 features including: move semantics, unique_ptr and . Lead author on three open source projects: A std::lib implementation: http://libcxx.llvm.org An Itanium ABI implementation: http://libcxxabi.llvm.org A date/time/timezone library: https://git... Read More →



Monday September 19, 2016 2:00pm - 3:00pm PDT
Frey (Room 406) Meydenbauer Center
  tutorial