(n)
| 163 | function paint(text, code) { return colorize ? `${code}${text}${C.reset}` : text; } |
| 164 | |
| 165 | function pct(n) { return `${(n * 100).toFixed(1)}%`; } |
| 166 | function ms(n) { return `${(n / 1000).toFixed(1)}s`; } |
| 167 | function signed(n, digits = 3) { |
| 168 | const s = n.toFixed(digits); |