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 09:09:39 GMT
- Dependencies: none
Credits
These definitions were written by Peter Harris.