pub struct FrameRateTracker { /* private fields */ }Expand description
Frame rate tracker
Implementations§
Source§impl FrameRateTracker
impl FrameRateTracker
Sourcepub fn record_frame(&mut self, timestamp: f64)
pub fn record_frame(&mut self, timestamp: f64)
Records a frame
Sourcepub fn current_fps(&self) -> f64
pub fn current_fps(&self) -> f64
Returns the current FPS
Sourcepub fn stats(&self) -> FrameRateStats
pub fn stats(&self) -> FrameRateStats
Returns frame statistics
Auto Trait Implementations§
impl Freeze for FrameRateTracker
impl RefUnwindSafe for FrameRateTracker
impl Send for FrameRateTracker
impl Sync for FrameRateTracker
impl Unpin for FrameRateTracker
impl UnsafeUnpin for FrameRateTracker
impl UnwindSafe for FrameRateTracker
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more