pub fn average_delta(&self) -> time::Duration {
        let sum: time::Duration = self.frame_durations.contents().iter().sum();
        // If our buffer is actually full, divide by its size.
        // Otherwise divide by the number of samples we've added
        if self.frame_durations.samples > self.frame_durations.size {
            sum / (self.frame_durations.size as u32)
        } else {
            sum / (self.frame_durations.samples as u32)
        }
    }
/// Gets the average time of a frame, averaged
/// over the last 200 frames.
Gets the average time of a frame, averaged
over the last 200 frames.
Gets the average time of a frame averaged over the last 200 frames .
pub fn average_delta(&self) -> time::Duration {
        let sum: time::Duration = self.frame_durations.contents().iter().sum();
        // If our buffer is actually full, divide by its size.
        // Otherwise divide by the number of samples we've added
        if self.frame_durations.samples > self.frame_durations.size {
            sum / (self.frame_durations.size as u32)
        } else {
            sum / (self.frame_durations.samples as u32)
        }
    }
pub fn average_delta ( & self ) -> time :: Duration { let sum : time :: Duration = self . frame_durations . contents ( ) . iter ( ) . sum ( ) ; // If our buffer is actually full, divide by its size. // Otherwise divide by the number of samples we've added if self . frame_durations . samples > self . frame_durations . size { sum / ( self . frame_durations . size as u32 ) } else { sum / ( self . frame_durations . samples as u32 ) } }
Gets the average time of a frame, averaged
over the last 200 frames.
Gets the average time of a frame averaged over the last 200 frames .
&self
&self