lagtime

1.0.0 • Public • Published

lagtime

measure event loop lag

Example

var lagtime = require("lagtime");
var setTimeout = require("timers").setTimeout
 
var lt = lagtime(function onLagChange(lagTime) {
    // Log the event loop delay
    console.log(lagTime);
});
 
 
setTimeout(funtion () {
  lt.shutdown();
}, 10000);

Installation

npm install lagtime

Tests

npm test

Contributors

  • Matt-Esch

MIT Licenced

Readme

Keywords

Package Sidebar

Install

npm i lagtime

Weekly Downloads

6

Version

1.0.0

License

none

Last publish

Collaborators

  • mattesch