This is mainly useful for debugging.
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)