Add sleep()
and usleep()
to nodejs.
This is mainly useful for debugging.
On windows the module will fall back to a while loop which will use 100% CPU!
var sleep = require('sleep');
sleep.sleep(n)
: sleep for n secondssleep.usleep(n)
: sleep for n microseconds (1 second is 1000000 microseconds)
Now bulids properly using node-gyp :)