time: cloneable delay

This commit is contained in:
Scott Mabin 2024-02-18 17:01:09 +00:00
parent 377e58e408
commit 20cd7d09f4

View file

@ -13,6 +13,7 @@ pub fn block_for(duration: Duration) {
/// the amount provided, but accuracy can be affected by many factors, including interrupt usage.
/// Make sure to use a suitable tick rate for your use case. The tick rate is defined by the currently
/// active driver.
#[derive(Clone)]
pub struct Delay;
impl embedded_hal_1::delay::DelayNs for Delay {