pub struct ScopeTimer<'a> {
pub label: &'a str,
pub time_format: TimeFormat,
pub now: Instant,
pub log_level: Option<LogLevel>,
pub debug_only: bool,
}Fields§
§label: &'a str§time_format: TimeFormat§now: Instant§log_level: Option<LogLevel>§debug_only: boolImplementations§
Source§impl<'a> ScopeTimer<'a>
impl<'a> ScopeTimer<'a>
pub fn new( label: &'a str, time_format: TimeFormat, log_level: Option<LogLevel>, debug_only: bool, ) -> Self
pub fn elapsed_time(&self)
Trait Implementations§
Source§impl<'a> Default for ScopeTimer<'a>
impl<'a> Default for ScopeTimer<'a>
Auto Trait Implementations§
impl<'a> Freeze for ScopeTimer<'a>
impl<'a> RefUnwindSafe for ScopeTimer<'a>
impl<'a> Send for ScopeTimer<'a>
impl<'a> Sync for ScopeTimer<'a>
impl<'a> Unpin for ScopeTimer<'a>
impl<'a> UnwindSafe for ScopeTimer<'a>
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