Skip to content

Latest commit

 

History

History

linzjs-metrics

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 

@linzjs/metrics

Simple timing metric tracker for NodeJS

Usage

import { Metrics } from '@linzjs/metrics';

const metrics = new Metrics();

metrics.start('timer');
const duration = metrics.end('timer') // 0.1 (in ms)

const allMetrics = metrics.metrics // { timer: 1e6 }


// Unfinished
metrics.start('timer');

metrics.unfinished // ['timer']