[][src]Struct noframe::deltatime::Deltatime

pub struct Deltatime { /* fields omitted */ }

Methods

impl Deltatime[src]

pub fn new() -> Self[src]

pub fn get(&self) -> Duration[src]

Returns the current deltatime value as a Duration.

pub fn secs(&self) -> f32[src]

Returns the current deltatime value in seconds.

pub fn millis(&self) -> f32[src]

Returns the current deltatime value in milliseconds.

pub fn reset(&mut self)[src]

Resets the current deltatime value; sets the value to a Duration of 0.

pub fn update(&mut self)[src]

This method should be called every tick. It updates the deltatime Duration value that is returned by the get method.

Trait Implementations

impl Clone for Deltatime[src]

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl Display for Deltatime[src]

Auto Trait Implementations

impl Send for Deltatime

impl Sync for Deltatime

Blanket Implementations

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

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

type Owned = T

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T> From for T[src]

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

type Error = !

🔬 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, U> TryInto for T where
    U: TryFrom<T>, 
[src]

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.

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

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

impl<T> Same for T

type Output = T

Should always be Self

impl<SS, SP> SupersetOf for SP where
    SS: SubsetOf<SP>, 

impl<T> SetParameter for T

fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
    T: Parameter<Self>, 

Sets value as a parameter of self.