1 2 3 4 5 6 7 8 9 10 11
use std::{thread, time}; use clerk::Delay; pub struct CustomDelay; impl Delay for CustomDelay { fn delay_ns(ns: u16) { thread::sleep(time::Duration::new(0, u32::from(ns))); } }