less than 1 minute read

Back in my younger days, I developed a set of metric collectors for java, influenced by Code Hale / Drop Wizard. Over the years, I have developed random sets of these for different languages / situations.

One of these is statman-stopwatch, a stopwatch for use in a node.js environment. Small, simple.

Sample Usage:

const Stopwatch = require('statman-stopwatch');
const sw = new Stopwatch();
sw.start();

// do some activity which you want to measure.

const delta = sw.read();

Read more on statman-stopwatch page.