Update app and tooling
This commit is contained in:
parent
3046531bdd
commit
e620ec7349
4950 changed files with 2975120 additions and 10 deletions
14
node_modules/time-span/index.js
generated
vendored
Normal file
14
node_modules/time-span/index.js
generated
vendored
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
'use strict';
|
||||
const convertHrtime = require('convert-hrtime');
|
||||
|
||||
module.exports = () => {
|
||||
const start = process.hrtime();
|
||||
const end = type => convertHrtime(process.hrtime(start))[type];
|
||||
|
||||
const returnValue = () => end('milliseconds');
|
||||
returnValue.rounded = () => Math.round(end('milliseconds'));
|
||||
returnValue.seconds = () => end('seconds');
|
||||
returnValue.nanoseconds = () => end('nanoseconds');
|
||||
|
||||
return returnValue;
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue