Function chroniker::sleep
[−]
[src]
pub fn sleep(time: u64)
Sleeps the thread for the supplied amount of time in milliseconds.
Examples
To sleep for one second:
chroniker::sleep(1000);
However to sleep for 5 seconds you can use the convert function:
use chroniker::units; use chroniker::units::TimeUnit; chroniker::sleep(units::convert(TimeUnit::Second, TimeUnit::Millisecond, 5));