Struct wasm_stopwatch::fps_logger::FpsLogger[][src]

pub struct FpsLogger { /* fields omitted */ }
Expand description

Logs the current FPS (with the log crate) at a specified interval.

Implementations

Creates a new FpsLogger. seconds_between_logs is the interval at which it logs the FPS.

Updates the FPS logger and logs the current FPS every seconds_between_logs. Should be called once per frame.

Returns the most recently computed FPS. This is updated every time the FPS is logged.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.