mirror of
https://github.com/ETLCPP/etl.git
synced 2026-06-15 16:36:03 +08:00
534 B
534 B
| title |
|---|
| duration_cast |
{{< callout type="info">}}
Header: chrono.h
From: 20.41.0
Similar to: std::chrono::duration_cast
{{< /callout >}}
Templates representing a time interval.
duration_cast
template <typename TToDuration, typename TRep, typename TPeriod>
ETL_CONSTEXPR14
TToDuration duration_cast(const etl::chrono::duration<TRep, TPeriod>& d)
ETL_NOEXCEPT
Description
Converts from one duration type to another.