forked from DefinitelyTyped/DefinitelyTyped
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathprecise.d.ts
More file actions
34 lines (28 loc) · 653 Bytes
/
precise.d.ts
File metadata and controls
34 lines (28 loc) · 653 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
// Type definitions for precise
// Project: https://www.npmjs.org/package/precise
// Definitions by: Peter Harris <https://github.com/codeanimal>
// Definitions: https://github.com/DefinitelyTyped/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;
}