Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
msleep, usleep, and nanosleep for commandline (bash) use
C
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
Makefile
README.md
msleep
usleep.c
usleep.osx-x86

README.md

Installation

git clone git://github.com/coolaj86/msleep-commandline.git
cd msleep-commandline
make
sudo make install # installs to /usr/local/bin

Contribute

Please implement nanosleep or add precompiled binaries for other CPUs and OSes.

msleep

Sleep for some number of milliseconds

Usage: msleep <milliseconds>

Example: msleep 1000

usleep

Sleep for some number of microseconds

Usage: usleep <microseconds>

Example: usleep 1000000

nanosleep

TODO (not implemented)

Sleep for some number of nanoseconds

Usage: nanosleep <nanoseconds>

Example: nanosleep 1000000000

Something went wrong with that request. Please try again.