a possible interface for more granular sleep times.
Fixes issue #260.
R=rsc, r
CC=golang-dev
https://golang.org/cl/181058
"syscall"
)
-// Sleep pauses the current goroutine for ns nanoseconds.
-// It returns os.EINTR if interrupted.
+// Sleep pauses the current goroutine for at least ns nanoseconds. Higher resolution
+// sleeping may be provided by syscall.Nanosleep on some operating systems.
+// Sleep returns os.EINTR if interrupted.
func Sleep(ns int64) os.Error { return os.NewSyscallError("sleep", syscall.Sleep(ns)) }