This module makes the operations exported by
available on all platforms. On POSIX systems it re-exports operations from
System.Posix.Unistd, on other platforms it emulates the operations as far
Sleep for the specified duration (in seconds). Returns the time remaining (if the sleep was interrupted by a signal, for example).
GHC Note: the comment for
usleep also applies here.
Sleep for the specified duration (in microseconds).
Control.Concurrent.threadDelay is a better choice.
usleep will block all other user
threads. Even with the
usleep requires a
full OS thread to itself.
neither of these shortcomings.