sleep6.1.0 • Public • Published
This is mainly useful for debugging.
Note that because this is a C++ module, it will need to be built on the system you are going to use it on.
When using nodejs
9.3 or higher it's better to use Atomics.wait which doesn't require compiling this C++
msleep functions can be implemented like this:
If you require
usleep this module is still required.
var sleep = require('sleep');
sleep.sleep(n): sleep for
sleep.msleep(n): sleep for
sleep.usleep(n): sleep for
nmicroseconds (1 second is 1000000 microseconds)