0.1.2 • Published 7 years ago

dump-timer v0.1.2

Weekly downloads
2
License
Apache-2.0
Repository
github
Last release
7 years ago

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

7 years ago

0.1.1

7 years ago

0.1.0

7 years ago