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