Struct ggez::timer::TimeContext [−][src]
pub struct TimeContext { /* fields omitted */ }
A structure that contains our time-tracking state.
Methods
impl TimeContext
[src]
impl TimeContext
pub fn new() -> TimeContext
[src]
pub fn new() -> TimeContext
Creates a new TimeContext
and initializes the start to this instant.
pub fn tick(&mut self)
[src]
pub fn tick(&mut self)
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]
impl Debug for TimeContext
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Default for TimeContext
[src]
impl Default for TimeContext
Auto Trait Implementations
impl Send for TimeContext
impl Send for TimeContext
impl Sync for TimeContext
impl Sync for TimeContext