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

pub struct TimeContext { /* fields omitted */ }

A structure that contains our time-tracking state.

Methods

impl TimeContext
[src]

[src]

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

[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, EventHandler::run() will do it for you.

Trait Implementations

impl Debug for TimeContext
[src]

[src]

Formats the value using the given formatter. Read more

impl Default for TimeContext
[src]

[src]

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

Auto Trait Implementations

impl Send for TimeContext

impl Sync for TimeContext