Installation
npm install --save @types/w3c-hr-time
Summary
This package contains type definitions for w3c-hr-time (https://github.com/jsdom/w3c-hr-time).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/w3c-hr-time.
index.d.ts
export interface PerformanceJSON {
timeOrigin: number;
}
/**
* Provides access to performance-related information for the current page.
*
* It's part of the High Resolution Time API.
*/
export class Performance {
constructor();
get timeOrigin(): number;
now(): number;
toJSON(): PerformanceJSON;
}
/**
* Returns the DOMHighResTimeStamp representing the high resolution time value of the global monotonic clock.
*/
export function getGlobalMonotonicClockMS(): number;
/**
* This value is `true` if the global monotonic clock has 5-μs accuracy.
*/
export const clockIsAccurate: boolean;
Additional Details
- Last updated: Tue, 07 Nov 2023 15:11:36 GMT
- Dependencies: none
Credits
These definitions were written by Timothy Gu, and ExE Boss.