shuteye provides for high-resolution sleep in rust. Let your code catch some shuteye
To use shuteye, first add this to your Cargo.toml:
shuteye
Cargo.toml
toml [dependencies] shuteye = "*"
Then, add this to your crate root:
rust extern crate shuteye;