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

pub struct TimeContext { /* fields omitted */ }

A structure that contains our time-tracking state.

Methods

impl TimeContext
[src]

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

Update the state of the TimeContext to record that another frame has taken place.

It's usually not necessary to call this function yourself, the EventHandler will do it for you.

Trait Implementations

impl Debug for TimeContext
[src]

Formats the value using the given formatter.

impl Default for TimeContext
[src]

Returns the "default value" for a type. Read more