Struct ggez::timer::TimeContext
[−]
[src]
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,
EventHandler::run()
will do it for you.
Trait Implementations
impl Debug for TimeContext
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more