sleepy

A simple crate containg only the function 'sleep' which takes 1 input in terms of seconds and pauses the program for that long


License
BSD-Source-Code

Documentation

rust-sleep

rust-sleep

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

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