(markName: string)
| 27 | } |
| 28 | |
| 29 | function measure(markName: string): void { |
| 30 | if (supportsUserTiming) { |
| 31 | performance.mark(markName + '-end'); |
| 32 | performance.measure(markName, markName + '-start', markName + '-end'); |
| 33 | performance.clearMarks(markName + '-start'); |
| 34 | performance.clearMarks(markName + '-end'); |
| 35 | } |
| 36 | } |
| 37 | |
| 38 | function now(): number { |
| 39 | if (supportsPerformanceNow) { |
no test coverage detected