[][src]Struct ggez::timer::TimeContext

pub struct TimeContext { /* fields omitted */ }

A structure that contains our time-tracking state.

Methods

impl TimeContext[src]

pub fn new() -> TimeContext[src]

Creates a new TimeContext and initializes the start to this instant.

pub fn tick(&mut self)[src]

Update the state of the TimeContext to record that another frame has taken place. Necessary for the FPS tracking and check_update_time() functions to work.

It's usually not necessary to call this function yourself, event::run() will do it for you.

Trait Implementations

impl Default for TimeContext[src]

impl Debug for TimeContext[src]

Auto Trait Implementations

Blanket Implementations

impl<T> From<T> for T[src]

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

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

type Error = Infallible

The type returned in the event of a conversion error.

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

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

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

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

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

impl<T> Same<T> for T

type Output = T

Should always be Self

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

impl<T> Erased for T

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.