A node.js module to calculate block execution time.
npm install elapsed-timer
var et = require('elapsed-timer');
var myTimer = new et.Timer('myTimer');
Start this timer.
Stop this timer;
Return duration nanoseconds.
var et = require('elapsed-timer');
var myMetric = et.metrics.myMetric;
Get the average time.
Get the minimum time.
Get the maximum time.
Get the number of timers.
Get the total duration of timers.
Clear value of this metric.