Struct ggez::timer::TimeContext
[−]
[src]
pub struct TimeContext { /* fields omitted */ }
A structure that contains our time-tracking state.
Methods
impl TimeContext
[src]
fn new() -> TimeContext
[src]
Creates a new TimeContext
and initializes the start to this instant.
fn tick(&mut self)
[src]
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.