(at = performance.now())
| 221 | } |
| 222 | |
| 223 | const syncLong = (at = performance.now()) => { |
| 224 | if (!hasLong) return |
| 225 | trim(long, span, at) |
| 226 | const block = long.reduce((sum, entry) => sum + Math.max(0, entry.dur - 50), 0) |
| 227 | const max = long.reduce((hi, entry) => Math.max(hi, entry.dur), 0) |
| 228 | setState("long", { block, count: long.length, max }) |
| 229 | } |
| 230 | |
| 231 | const syncInp = (at = performance.now()) => { |
| 232 | for (const [key, entry] of seen) { |