[−][src]Struct game_time::framerate::sample::LinearAverageSampler
A frame rate sampler that computes the average frame rate of a number of past frames.
Methods
impl LinearAverageSampler[src]
impl LinearAverageSamplerpub fn new() -> LinearAverageSampler[src]
pub fn new() -> LinearAverageSamplerConstruct a new LinearAverageSampler with a default sample size.
pub fn with_max_samples(max_samples: u32) -> LinearAverageSampler[src]
pub fn with_max_samples(max_samples: u32) -> LinearAverageSamplerConstruct a new LinearAverageSampler` with a specified sample size.
Trait Implementations
impl FrameRateSampler for LinearAverageSampler[src]
impl FrameRateSampler for LinearAverageSamplerfn tick(&mut self, time: &GameTime)[src]
fn tick(&mut self, time: &GameTime)fn average_frame_rate(&self) -> f64[src]
fn average_frame_rate(&self) -> f64fn is_saturated(&self) -> bool[src]
fn is_saturated(&self) -> boolfn max_samples(&self) -> u32[src]
fn max_samples(&self) -> u32impl Default for LinearAverageSampler[src]
impl Default for LinearAverageSamplerfn default() -> LinearAverageSampler[src]
fn default() -> LinearAverageSamplerimpl Clone for LinearAverageSampler[src]
impl Clone for LinearAverageSamplerfn clone(&self) -> LinearAverageSampler[src]
fn clone(&self) -> LinearAverageSamplerfn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)1.0.0
[src]Performs copy-assignment from source. Read more
impl Debug for LinearAverageSampler[src]
impl Debug for LinearAverageSamplerAuto Trait Implementations
impl Send for LinearAverageSampler
impl Send for LinearAverageSamplerimpl Sync for LinearAverageSampler
impl Sync for LinearAverageSamplerBlanket Implementations
impl<T, U> Into for T where
U: From<T>, [src]
impl<T, U> Into for T where
U: From<T>, impl<T> ToOwned for T where
T: Clone, [src]
impl<T> ToOwned for T where
T: Clone, impl<T> From for T[src]
impl<T> From for Timpl<T, U> TryFrom for T where
T: From<U>, [src]
impl<T, U> TryFrom for T where
T: From<U>, type Error = !
🔬 This is a nightly-only experimental API. (
try_from)The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>impl<T> Borrow for T where
T: ?Sized, [src]
impl<T> Borrow for T where
T: ?Sized, impl<T> Any for T where
T: 'static + ?Sized, [src]
impl<T> Any for T where
T: 'static + ?Sized, fn get_type_id(&self) -> TypeId[src]
fn get_type_id(&self) -> TypeIdimpl<T, U> TryInto for T where
U: TryFrom<T>, [src]
impl<T, U> TryInto for T where
U: TryFrom<T>, type Error = <U as TryFrom<T>>::Error
🔬 This is a nightly-only experimental API. (
try_from)The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>impl<T> BorrowMut for T where
T: ?Sized, [src]
impl<T> BorrowMut for T where
T: ?Sized, fn borrow_mut(&mut self) -> &mut T[src]
fn borrow_mut(&mut self) -> &mut Timpl<T, U> IntoDuration for T where
U: FromDuration<T>, [src]
impl<T, U> IntoDuration for T where
U: FromDuration<T>, type Error = <U as FromDuration<T>>::Error
fn into_duration(self) -> Result<U, <U as FromDuration<T>>::Error>[src]
fn into_duration(self) -> Result<U, <U as FromDuration<T>>::Error>