update_rate 2.0.1

A generic, low-overhead rate counter for FPS counters and the like.
Documentation

update_rate

Build Status docs.rs documented available on crates.io

A generic, low-overhead rate counter for frames-per-second indicators, measurement averaging, and more.

use update_rate::{RateCounter, RollingRateCounter};

let mut c = RollingRateCounter::new(10);

loop {
    c.update();
    mycrate.work(); // Perform the slow operation
    println!("Updating at {}", c); 
}