[][src]Struct game_time::framerate::counter::FrameCounter

pub struct FrameCounter<S: FrameRateSampler> { /* fields omitted */ }

A basic frame rate counter.

Methods

impl<S: FrameRateSampler> FrameCounter<S>
[src]

Create a new FrameCounter with a target frame rate and sampler.

Set a new slow threshold.

Return the current slow threshold.

If the current frame rate divided by the target frame rate is less than this value, then FrameCount::is_running_slowly will return true.

Set the target frame rate.

Return true if the sampler is saturated.

Return a reference to the sampler object.

Trait Implementations

impl<S: FrameRateSampler> FrameCount for FrameCounter<S>
[src]

impl<S: Clone + FrameRateSampler> Clone for FrameCounter<S>
[src]

Performs copy-assignment from source. Read more

impl<S: Debug + FrameRateSampler> Debug for FrameCounter<S>
[src]

Auto Trait Implementations

impl<S> Send for FrameCounter<S> where
    S: Send

impl<S> Sync for FrameCounter<S> where
    S: Sync

Blanket Implementations

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

impl<T> From for T
[src]

impl<T, U> TryFrom for T where
    T: From<U>, 
[src]

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> IntoDuration for T where
    U: FromDuration<T>, 
[src]