1.0.0 • Published 10 years ago

lagtime v1.0.0

Weekly downloads
1
License
-
Repository
github
Last release
10 years ago

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