node-toobusy
node-toobusy copied to clipboard
Getting the lag value
Is there a chance to not only get a true or false on toobusy(), but also the measured lag time? This could be used to have a ongoing measurement of the loop's load.
I'm adding a +1 for this. I would love to be able to get back a number. This could be <= to the threshold set. I would like to call toobusy(300) and plot the values over time.
+1 as well.
After some brief code spelunking, I realized it's already there:
toobusy = require 'toobusy'
toobusy.lag()