Lines Matching refs:Period
443 template <typename Period> FMT_CONSTEXPR const char* get_units() {
728 template <typename Rep, typename Period,
731 std::chrono::duration<Rep, Period> d) {
751 template <typename Rep, typename Period,
754 std::chrono::duration<Rep, Period> d) {
756 auto ms = mod(d.count() * static_cast<common_type>(Period::num) /
757 static_cast<common_type>(Period::den) * 1000,
769 template <typename Period, typename OutputIt>
771 if (const char* unit = get_units<Period>()) return format_to(out, "{}", unit);
772 if (Period::den == 1) return format_to(out, "[{}]s", Period::num);
773 return format_to(out, "[{}/{}]s", Period::num, Period::den);
777 typename Period>
795 std::chrono::duration<Rep, Period> d)
806 auto tmpval = std::chrono::duration<rep, Period>(val);
810 std::chrono::duration<rep, Period>(val));
935 using duration_rep = std::chrono::duration<rep, Period>;
936 using duration_Rep = std::chrono::duration<Rep, Period>;
939 auto tmpval = std::chrono::duration<Rep, Period>(val);
989 void on_duration_unit() { out = format_chrono_duration_unit<Period>(out); }
993 template <typename Rep, typename Period, typename Char>
994 struct formatter<std::chrono::duration<Rep, Period>, Char> {
1002 using duration = std::chrono::duration<Rep, Period>;
1089 internal::format_chrono_duration_unit<Period>(out);
1091 internal::chrono_formatter<FormatContext, decltype(out), Rep, Period> f(