make PerfModel fields public

This commit is contained in:
🪞👃🪞 2025-03-04 20:56:43 +02:00
parent d5a304e645
commit 6cd85efe50

View file

@ -4,11 +4,11 @@ use crate::*;
#[derive(Debug)] #[derive(Debug)]
pub struct PerfModel { pub struct PerfModel {
pub enabled: bool, pub enabled: bool,
clock: quanta::Clock, pub clock: quanta::Clock,
// In nanoseconds. Time used by last iteration. // In nanoseconds. Time used by last iteration.
used: AtomicF64, pub used: AtomicF64,
// In microseconds. Max prescribed time for iteration (frame, chunk...). // In microseconds. Max prescribed time for iteration (frame, chunk...).
window: AtomicF64, pub window: AtomicF64,
} }
pub trait HasPerf { pub trait HasPerf {