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.