Time_point
std::chrono::time_point is a C++ standard library class template representing a point in time relative to a clock's epoch, measured using a duration.
Learn C++ by Example
std::chrono::time_point is a class template representing a point in time relative to a clock's epoch using a duration.
- How it is used
- Uses clock-relative timestamps to build countdowns, compare moments, and convert calendar dates into measurable event times.
- How deep it goes
- Explains template parameters, epochs, clocks, subtraction, conversions, and selected expanded types, while deferring complete chrono internals.
- Examples
- Demonstrates year-end countdowns, parsed event dates, sys_days conversion, duration output, and readable calendar literals.
- What you can do after
- Build countdowns with std::chrono by obtaining clock readings, creating event dates, subtracting time points, and formatting durations.
C++ Concurrency in Action, Second Edition
`std::chrono::time_point` is a C++ standard library class template representing a point in time relative to a clock's epoch.
- How it is used
- Represents clock-relative moments for elapsed-time measurements and absolute timeouts.
- How deep it goes
- Defines clock and duration parameters, epoch-relative values, and arithmetic; notes that epochs cannot be queried or standardized.
- Examples
- Demonstrates timing a function call and waiting on a condition variable until a deadline.
- What you can do after
- Apply `std::chrono` to calculate deadlines and measure elapsed time.
Read how C++ Concurrency in Action, Second Edition explains time_point →
Related concepts
- std::chrono::durationconfigures · std::chrono::duration is a C++ standard library class template representing a time interval with a specified tick period and representation type.
- clockconfigures · A computer clock is a timekeeping source or interface that provides time values or measurements to software.
- epochuses · In machine learning, an epoch is one complete pass through the training data during model training or optimization.
- durationhas part · A duration is an amount or span of time, expressed as an interval or in temporal units.
These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.

