@types/w3c-hr-time
TypeScript icon, indicating that this package has built-in type declarations

1.0.2 • Public • Published

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.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/w3c-hr-time

Weekly Downloads

7,788

Version

1.0.2

License

MIT

Unpacked Size

3.97 kB

Total Files

5

Last publish

Collaborators

  • types