Struct macroquad::telemetry::LogTimeGuard
source · [−]pub struct LogTimeGuard<'a> { /* private fields */ }
Expand description
{
let _t = telemetry::LogTimeGuard::new("Atlas build time");
mq::texture::build_textures_atlas();
}
Will add “Time query: Atlas build time, 0.5s” string to
telemetry::strings()
Implementations
sourceimpl<'a> LogTimeGuard<'a>
impl<'a> LogTimeGuard<'a>
pub fn new(name: &'a str) -> LogTimeGuard<'_>
Trait Implementations
Auto Trait Implementations
impl<'a> RefUnwindSafe for LogTimeGuard<'a>
impl<'a> Send for LogTimeGuard<'a>
impl<'a> Sync for LogTimeGuard<'a>
impl<'a> Unpin for LogTimeGuard<'a>
impl<'a> UnwindSafe for LogTimeGuard<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more