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 one hour you can use the convert function:
use chroniker::unit; chroniker::sleep(unit::covert(TimeUnit::Minutes, TimeUnit::Milliseconds, 60));