pub fn sleep(duration: Duration) -> Result<()>
Sleep the current thread for the provided Duration
Duration
Errors on a malformed duration, or userspace data copying errors