(ms: number)
| 115 | const calibrationMode = params.get('delayMode'); |
| 116 | |
| 117 | function busy(ms: number) { |
| 118 | let end = performance.now() + ms; |
| 119 | while (performance.now() < end) { |
| 120 | // Deliberately block the main thread. |
| 121 | } |
| 122 | } |
| 123 | |
| 124 | const eventTimingSupported = PerformanceObserver.supportedEntryTypes.includes('event'); |
| 125 | if (eventTimingSupported) { |