std::chrono::steady_clock::now()
Returns the current time as a time_point from a monotonically increasing clock — it never goes backwards, even if the system clock is adjusted. Used to measure elapsed time and set deadlines. std::chrono::time_point
Represents a specific point in time relative to a clock's epoch. You rarely construct one directly — you typically get one back from now() and subtract two of them to get a duration. std::chrono::seconds
A duration type representing a number of seconds. It is a convenient alias for std::chrono::duration<long long>. Call .count() on it to get the raw integer value out. |
Cheatography
https://cheatography.com
c++ (chrono) Cheat Sheet (DRAFT) by blakecromar
A cheatsheet on the chrono library
This is a draft cheat sheet. It is a work in progress and is not finished yet.