estimate-ms
v0.1.0
Published
output estimated time
Downloads
3
Readme
estimate-ms
pretty output estimated time
Install
$ npm install --save estimate-ms
Usage
const estimateMs = require('estimate-ms');
const len = 10;
const est = estimateMs(len);
for (let i = 0; i < len; ++i) {
console.log(est(i));
}
// => 162ms
// => 189ms
// => 84ms
// => 49ms
// => 33ms
// => 22ms
// => 15ms
// => 10ms
// => 6ms
// => 0ms
API
estimateMs(len)
len
Type: number
array length.
est(index)
index
Type: number
current index.
License
MIT © akameco