(ms)
| 58452 | parcelHelpers.export(exports, "formatValue", ()=>formatValue); |
| 58453 | parcelHelpers.export(exports, "formatImage", ()=>formatImage); |
| 58454 | function formatTime(ms) { |
| 58455 | let formatted; |
| 58456 | if (ms < 10) formatted = "".concat(ms.toFixed(2), "ms"); |
| 58457 | else if (ms < 100) formatted = "".concat(ms.toFixed(1), "ms"); |
| 58458 | else if (ms < 1000) formatted = "".concat(ms.toFixed(0), "ms"); |
| 58459 | else formatted = "".concat((ms / 1000).toFixed(2), "s"); |
| 58460 | return formatted; |
| 58461 | } |
| 58462 | function leftPad(string) { |
| 58463 | let length = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 8; |
| 58464 | const padLength = Math.max(length - string.length, 0); |
nothing calls this directly
no outgoing calls
no test coverage detected