Skip to content
/ stopper Public

Minimal stopwatch object to count and measure time in JavaScript.

License

Notifications You must be signed in to change notification settings

sbstjn/stopper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

40 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Minimal stopwatch object to count and measure time in JavaScript.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages