pub fn tick(&mut self) -> u64 {
        let elapsed = self.instant.elapsed().as_millis() as u64;

        let delta_time = elapsed - self.previous_time;
        self.previous_time = elapsed;

        if !self.paused {
            self.elapsed += delta_time;
        }

        delta_time
    }
/// Updates `elapsed` with time since last call. Returns this value (delta time).
Updates `elapsed` with time since last call. Returns this value (delta time).
Updates ` elapsed ` with time since last call . Returns this value ( delta time ) .
pub fn tick(&mut self) -> u64 {
        let elapsed = self.instant.elapsed().as_millis() as u64;
        let delta_time = elapsed - self.previous_time;
        self.previous_time = elapsed;
        if !self.paused {
            self.elapsed += delta_time;
        }
        delta_time
    }
pub fn tick ( & mut self ) -> u64 { let elapsed = self . instant . elapsed ( ) . as_millis ( ) as u64 ; let delta_time = elapsed - self . previous_time ; self . previous_time = elapsed ; if ! self . paused { self . elapsed += delta_time ; } delta_time }
Updates `elapsed` with time since last call.
Updates ` elapsed ` with time since last call .
&mut self
&mut self