Create a new duration
which is a multiple of another.
template <class Rep1, class Period, class Rep2> duration<typename common_type<Rep1, Rep2>::type, Period> constexpr operator*( const duration<Rep1, Period>& d, const Rep2& s); template <class Rep1, class Rep2, class Period> duration<typename common_type<Rep1, Rep2>::type, Period> constexpr operator*( const Rep1& s, const duration<Rep2, Period>& d);
- Returns:
duration<CommonRep, Period>(duration<CommonRep, Period>(d).count()*s), where CommonRep isstd::common_type<Rep1,Rep2>::type.
Header
#include <chrono>