mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
35 lines
649 B
TypeScript
35 lines
649 B
TypeScript
// Type definitions for precise
|
|
// Project: https://www.npmjs.org/package/precise
|
|
// Definitions by: Peter Harris <https://github.com/codeanimal>
|
|
// Definitions: https://github.com/borisyankov/DefinitelyTyped
|
|
|
|
declare module "precise" {
|
|
/**
|
|
* Precise factory
|
|
*/
|
|
function _precise(): _precise.Precise;
|
|
|
|
module _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;
|
|
}
|