lloyd / node-toobusy

Build Node.JS servers that don't fall over.
1.3k stars 128 forks source link

retrieve actual lag #11

Closed juniorplenty closed 11 years ago

juniorplenty commented 11 years ago

Would like to see the actual lag, in addition to the simple true/false on toobusy. Similar to this usage example, which doesn't look like it's valid anymore:

https://github.com/lloyd/node-toobusy/blob/master/examples/standalone.js

juniorplenty commented 11 years ago

Nevermind; looks like this works:

var lag = require('toobusy').lag;

console.log("Current lag: " + lag());