dumb-timer
v0.1.2
Published
Really dumb timer
Downloads
2
Readme
Dump timer
Simple use case
const timer = require('dump-timer');
const trace = time.start('my-timer');
// do stuff
const time = trace.end();
Using Statsd
const timer = require('dump-timer');
const StatsD = require('hot-shots');
const client = new StatsD({
globalTags: []
});
const trace = time.start('my-timer', { stats: client });
// do stuff
trace.end();