time: cloneable delay
This commit is contained in:
parent
377e58e408
commit
20cd7d09f4
1 changed files with 1 additions and 0 deletions
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue