npm.io
0.0.32 • Published 2 years ago

@types/precise

Licence
MIT
Version
0.0.32
Deps
0
Size
3 kB
Vulns
0
Weekly
0
Stars
51.4K

Installation

npm install --save @types/precise

Summary

This package contains type definitions for precise (https://www.npmjs.org/package/precise).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/precise.

index.d.ts

/**
 * Precise factory
 */
declare function _precise(): _precise.Precise;

declare namespace _precise {
    class Precise {
        constructor();

        /**
         * Starts a timer
         */
        start(): Precise;

        /**
         * Stops a timer
         */
        stop(): Precise;

        /**
         * Returns the nanoseconds from `start()` to `stop()`
         */
        diff(): number;
    }
}

export = _precise;

Additional Details

  • Last updated: Tue, 07 Nov 2023 0939 GMT
  • Dependencies: none

Credits

These definitions were written by Peter Harris.