dumb-timer

0.1.2 • Public • Published

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();

Readme

Keywords

none

Package Sidebar

Install

npm i dumb-timer

Weekly Downloads

2

Version

0.1.2

License

Apache-2.0

Last publish

Collaborators

  • johndagostino