Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Add sleep() and usleep() to nodejs
C++ JavaScript Python
Branch: master

README.md

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)
Something went wrong with that request. Please try again.