Skip to content

Releases: svenkatreddy/execution-time

V1.4.1

04 Feb 23:36
77a201b
Compare
Choose a tag to compare
  • return name for named performance measurer which is useful when dealing with named performance measurer.
  • update development dependencies.
  • Add package-lock

Named performance measurer

04 Feb 23:24
5ab63e2
Compare
Choose a tag to compare

Added support for Named performance measurer

const perf = require('execution-time')();
//at beginning of your code, pass any name
perf.start('apiCall');
//at end of your code, pass the same name (anywhere in your flow)
const results = perf.stop('apiCall');
console.log(results.time);  // in milliseconds

V 1.2.0

27 Apr 00:38
Compare
Choose a tag to compare
- update log methods