0.1.1 • Published 9 years ago
moorea-stopwatch v0.1.1
moorea-stopwatch
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