Updated with new methods

This commit is contained in:
Yorick
2016-04-05 11:42:41 +00:00
parent 2bdcf41538
commit 75b1a4c9bf
71 changed files with 14055 additions and 403 deletions
+20
View File
@@ -0,0 +1,20 @@
sleep
=====
Add [`sleep()`][1] and [`usleep()`][2] to Node.js, via a C++ binding.
This is mainly useful for debugging.
**These calls will block execution of all JavaScript by halting Node.js' event loop!**
Usage
-----
var sleep = require('sleep');
* `sleep.sleep(n)`: sleep for `n` seconds
* `sleep.usleep(n)`: sleep for `n` microseconds (1 second is 1000000 microseconds)
[1]: http://linux.die.net/man/3/sleep
[2]: http://linux.die.net/man/3/usleep