- if (abs(t) < 60) {
- // The precision is always given without taking the prefix into account
- // so we need to deduct the number of decimals the prefix might imply
- const int prefix_order =
- -(prefix * 3 + pv::util::FirstSIPrefixPower);
-
- const unsigned int relative_prec =
- (prefix >= pv::util::FirstSIPrefix) ? precision :
- std::max((int)(precision - prefix_order), 0);
-
- return format_si_value(t, "s", prefix, relative_prec, sign);
- } else
- return format_time_in_full(t, precision, sign);
+ if (abs(t) < 60)
+ return format_time_with_si(t, "s", prefix, precision);
+ else
+ return format_time_in_full(t, precision);