/// Create a timer with a given period (time between ticks)
Create a timer with a given period (time between ticks)
Create a timer with a given period ( time between ticks )
pub fn with_duration(period: Duration) -> Timer {
        Timer {
            period,
            init: Instant::now(),
        }
    }
pub fn with_duration ( period : Duration ) -> Timer { Timer { period , init : Instant :: now ( ) , } }
Create a timer with a given period (time between ticks)
Create a timer with a given period ( time between ticks )
period
Duration