moorea-stopwatch

0.1.1 • Public • Published

moorea-stopwatch

Dependency Status devDependency Status

very simple stopwatch class for logging purposes

Usage

'use strict';
 
var
  StopWatch = require('moorea-stopwatch');
 
var stopWatch = new StopWatch();
 
// DoSomething(TM)
 
var elapsed = stopWatch.elapsed();
console.log('elapsed time: ' + elapsed + ' ms');

API

start() restart the stopWatch

elapsed() return elapsed time in milliseconds

Readme

Keywords

Package Sidebar

Install

npm i moorea-stopwatch

Weekly Downloads

1

Version

0.1.1

License

MIT

Last publish

Collaborators

  • pdesterlich