Update app and tooling
This commit is contained in:
parent
3046531bdd
commit
e620ec7349
4950 changed files with 2975120 additions and 10 deletions
50
node_modules/time-span/index.d.ts
generated
vendored
Normal file
50
node_modules/time-span/index.d.ts
generated
vendored
Normal file
|
|
@ -0,0 +1,50 @@
|
|||
declare namespace timeSpan {
|
||||
interface TimeEndFunction {
|
||||
/**
|
||||
@returns Elapsed milliseconds.
|
||||
*/
|
||||
(): number;
|
||||
|
||||
/**
|
||||
@returns Elapsed milliseconds rounded.
|
||||
*/
|
||||
rounded(): number;
|
||||
|
||||
/**
|
||||
@returns Elapsed seconds.
|
||||
*/
|
||||
seconds(): number;
|
||||
|
||||
/**
|
||||
@returns Elapsed nanoseconds.
|
||||
*/
|
||||
nanoseconds(): number;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
Simplified high resolution timing.
|
||||
|
||||
@returns A function that returns the time difference.
|
||||
|
||||
@example
|
||||
```
|
||||
import timeSpan = require('time-span');
|
||||
|
||||
const end = timeSpan();
|
||||
|
||||
timeConsumingFn();
|
||||
|
||||
console.log(end());
|
||||
//=> 1745.3186
|
||||
|
||||
console.log(end.rounded());
|
||||
//=> 1745
|
||||
|
||||
console.log(end.seconds());
|
||||
//=> 1.7453186
|
||||
```
|
||||
*/
|
||||
declare function timeSpan(): timeSpan.TimeEndFunction;
|
||||
|
||||
export = timeSpan;
|
||||
Loading…
Add table
Add a link
Reference in a new issue