estimate-ms

0.1.0 • Public • Published

estimate-ms Build Status

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

Readme

Keywords

none

Package Sidebar

Install

npm i estimate-ms

Weekly Downloads

1

Version

0.1.0

License

MIT

Last publish

Collaborators

  • akameco