rust-sleep

rust-sleep

to use this crate add the following line to your Cargo.toml under the [dependencies] section: sleepy = "1.0.0"

then put: "use sleepy::sleep" in your .rs file

finally, call the sleep(x) function with x being the amount of seconds to pause for