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]

[src]

Constructs a new FpsClock from the specified FPS

[src]

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

[src]

Makes the game loop slow down to run at the correct FPS. Returns the time in nanoseconds since the last time tick() was called.

Trait Implementations

impl Debug for FpsClock
[src]

[src]

Formats the value using the given formatter.