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

/dump-timer/

    Package Sidebar

    Install

    npm i dump-timer

    Weekly Downloads

    1

    Version

    0.1.2

    License

    Apache-2.0

    Last publish

    Collaborators

    • johndagostino