pub struct FrameTimer { /* private fields */ }Expand description
Ongoing frame measurement.
Implementations§
Source§impl FrameTimer
impl FrameTimer
pub fn start() -> Self
pub fn record_layout(&mut self, duration: Duration)
pub fn record_commit(&mut self)
pub fn finish(self, frame_number: u64, node_count: u32) -> FrameRecord
Auto Trait Implementations§
impl Freeze for FrameTimer
impl RefUnwindSafe for FrameTimer
impl Send for FrameTimer
impl Sync for FrameTimer
impl Unpin for FrameTimer
impl UnsafeUnpin for FrameTimer
impl UnwindSafe for FrameTimer
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