Skip to content

eddydas/node-sleep

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

sleep

Add sleep() and usleep() to nodejs.

This is mainly useful for debugging.

Sleep will block execution of all javascript!

On windows the module will fall back to a while loop which will use 100% CPU!

Usage

var sleep = require('sleep');

  • sleep.sleep(n): sleep for n seconds
  • sleep.usleep(n): sleep for n microseconds (1 second is 1000000 microseconds)

Update

Now bulids properly using node-gyp :)

About

Add sleep() and usleep() to nodejs

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C++ 47.3%
  • JavaScript 46.4%
  • Python 6.3%