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)


sleep
=====

Add `sleep()` and `usleep()` to nodejs.

This is mainly useful for debugging.

**Sleep will block execution of all javascript!**

Usage
-----

`var sleep = require('sleep');`

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


Remove note about Windows consuming 100% CPU
Remove note about Windows consuming 100% CPU

As of the `v2.0.0` release, Windows is now supported through C++ as well rather than falling back to a JS busy-waiting loop.