Ho do I perform an active sleep/timeout in Nodejs? : <p>I know that Javascript is single-threaded and blocking the event loop is not the right way. But I was wondering if there is a way to perform something like <code>sleep(5000ms)</code> to <strong>simulate</strong> code that takes a long time to perform.</p>

<p>I need this for debugging purposes.</p>
