sleep

Add sleep() and usleep() to nodejs

npm install sleep
79 downloads in the last day
882 downloads in the last week
3 641 downloads in the last month

sleep

Add sleep() and usleep() to nodejs.

This is mainly useful for debugging.

Sleep will block execution of all javascript!

On windows the module will fall back to a while loop which will use 100% CPU!

Usage

var sleep = require('sleep');

  • sleep.sleep(n): sleep for n seconds
  • sleep.usleep(n): sleep for n microseconds (1 second is 1000000 microseconds)

Update

Now bulids properly using node-gyp :)

npm loves you