User Timing polyfill
npm install @perf-tools/performance@perf-tools/performance
-----------------------
User Timing polyfill
```
npm i --save @perf-tools/performance
`ts
// Polyfill
import from '@perf-tools/performance';
// As module
import { performance } from '@perf-tools/performance';
`
---
- Browser, Worker and NodeJS
- API:
- now - Returns a DOMHighResTimeStamp representing the number of milliseconds elapsed since a reference instant.timestamp
- mark - Creates a in the browser's performance entry buffer with the given name.timestamp
- measure - Creates a named in the browser's performance entry buffer between two specified marks (known as the start mark and end mark, respectively).PerformanceEntry
- getEntries - Returns a list of objects based on the given filter.PerformanceEntry
- getEntriesByType - Returns a list of objects of the given entry type.PerformanceEntry
- getEntriesByName - Returns a list of objects based on the given name and entry type.mark
- clearMarks - Removes the given from the browser's performance entry buffer.measure
- clearMeasures - Removes the given from the browser's performance entry buffer.
---
#### Not Supported
---
- npm inpm test`, code coverage
-