1 2 3 4 5 6
use std::{thread, time::Duration}; pub fn sleep(millis: u64) { let timeout = Duration::from_millis(millis); thread::sleep(timeout); }