Skip to content

pdesterlich/moorea-stopwatch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

very simple stopwatch class for logging purposes

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published