functional-timer
v1.0.1
Published
Simple to use functional timer / stopwatch
Downloads
3
Readme
functional-timer
Simple timer / stopwatch function that can be used to collect or log timing metrics.
const timer = require('functional-timer');
const instance = timer().start();
// do something
instance.log('Current time since started: ');
// do something else
instance.stop().log('Finished in: ');