JSPM

node-eta

0.1.1
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 120020
  • Score
    100M100P100Q161732F
  • License BSD

Estimated time of arrival

Package Exports

  • node-eta

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (node-eta) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

ETA

Estimated time of arrival.

API

ctor(count)

Constructs ETA object for count of iterations.

var Eta = require('node-eta');
var eta = new Eta(10);

start()

Starts time measurement.

iterate()

Notifies estimator that one more iteration has finished.

getLengthInSeconds()

Returns number of seconds passed from start.

getEstimatedLengthInSeconds()

Returns total length in seconds (estimated).

getIterationsPerSecond()

Returns current number of iterations per second.

getPercentage()

Returns completion percentage.

getEtaInSeconds()

Returns current value of ETA in seconds.

getEtaFormatted()

Returns current value formatted for easy reading by human.

License

BSD