|
|
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Defined in header <chrono> | ||
template<class Dest,class Source,class Duration> auto clock_cast(conststd::chrono::time_point<Source, Duration>& t); | (since C++20) | |
Converts the time pointt of a clockSource to an equivalent time point of the clockDest, usingstd::chrono::system_clock and/orstd::chrono::utc_clock as intermediaries if necessary.
std::chrono::clock_time_conversion<std::chrono::utc_clock,std::chrono::system_clock>{}(
std::chrono::clock_time_conversion<std::chrono::system_clock,std::chrono::utc_clock>{}(
The result of the conversion, determined as described above.
| This section is incomplete Reason: no example |
(C++20) | traits class defining how to convert time points of one clock to another (class template)[edit] |