Struct fps_clock::FpsClock [] [src]

pub struct FpsClock { /* fields omitted */ }

A structure that keeps your game loop running at a constant FPS

Methods

impl FpsClock
[src]

Constructs a new FpsClock from the specified FPS

Returns the FPS that this FpsClock is set to run at.

Makes the game loop slow down to run at the correct FPS

Trait Implementations

impl Debug for FpsClock
[src]

Formats the value using the given formatter.