text: public void formatValue(StringBuffer toAppendTo, Object value) {double elapsed = ((Number) value).doubleValue();if (elapsed < 0) {toAppendTo.append('-');elapsed = -elapsed;}Object[] parts = new Long[specs.size()];for (int i = 0; i < specs.size(); i++) {parts[i] = specs.get(i).valueFor(elapsed);}try (Formatter formatter = new Formatter(toAppendTo, Locale.ROOT)) {formatter.format(printfFmt, parts);}}