pub fn new<S>(tag: S) -> DynamicSleep
  where
    S: Into<String>,
  {
    let hz = 30;
    DynamicSleep {
      tag: tag.into(),
      _freq: hz,
      _period_nanos: hz_to_nanos(hz),
      last_instant: None,
      cycles: 0,
      slips: 0,
    }
  }
/// Create a new instance with default frequency of 30hz.
/// If logging is enabled, tag is used to mark the log messages
Create a new instance with default frequency of 30hz.
If logging is enabled, tag is used to mark the log messages
Create a new instance with default frequency of 30hz . If logging is enabled tag is used to mark the log messages
pub fn new<S>(tag: S) -> DynamicSleep
  where
    S: Into<String>,
  {
    let hz = 30;
    DynamicSleep {
      tag: tag.into(),
      _freq: hz,
      _period_nanos: hz_to_nanos(hz),
      last_instant: None,
      cycles: 0,
      slips: 0,
    }
  }
pub fn new < S > ( tag : S ) -> DynamicSleep where S : Into < String > , { let hz = 30 ; DynamicSleep { tag : tag . into ( ) , _freq : hz , _period_nanos : hz_to_nanos ( hz ) , last_instant : None , cycles : 0 , slips : 0 , } }
Create a new instance with default frequency of 30hz.
Create a new instance with default frequency of 30hz .
tag
S
tag
S