furmint-runtime 0.1.0

Main package of furmint game engine providing higher level API
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use crate::time::Time;

#[test]
fn tps_calculation() {
    let tick = Time {
        ticks: 500,
        tick_period: 100_000_000,
        total_elapsed_time: 5.0,
        delta_seconds: 0.0,
    };

    assert_eq!(tick.tps(), 100.0);
}