stopper

0.4.3 • Public • Published

stopper

Travis Commitizen friendly npm npm

A minimal JavaScript stopwatch object to count and measure time in your Node.js or browser applications.

(() => {
  'use strict';
 
  const Stopper = require('stopper')  
    , util = require('util');
 
  const stp = new Stopper('A nice but optional name');
 
  stp.start();
 
  setTimeout(() => {
    stp.stop();
 
    util.log(stp.measure());
  }, 600);
})();
> node test.js
20 Jun 09:36:58 - 603

Readme

Keywords

none

Package Sidebar

Install

npm i stopper

Weekly Downloads

2

Version

0.4.3

License

MIT

Last publish

Collaborators

  • sbstjn