pub fn new(duration: Duration, repeating: bool) -> Self {
        Self {
            duration,
            repeating,
            ..Default::default()
        }
    }
/// Creates a new timer with a given duration.
///
/// See also [`Timer::from_seconds`](Timer::from_seconds).
Creates a new timer with a given duration.
Creates a new timer with a given duration .
pub fn new(duration: Duration, repeating: bool) -> Self {
        Self {
            duration,
            repeating,
            ..Default::default()
        }
    }
pub fn new ( duration : Duration , repeating : bool ) -> Self { Self { duration , repeating , .. Default :: default ( ) } }
Creates a new timer with a given duration.
Creates a new timer with a given duration .
duration
Duration
repeating
bool
duration
Duration
repeating
bool