Struct kaspa_core::time::Stopwatch
source · pub struct Stopwatch<const TR: u64 = 1000> { /* private fields */ }Expand description
Stopwatch which reports on drop if the timed operation passed the threshold TR in milliseconds
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<const TR: u64> RefUnwindSafe for Stopwatch<TR>
impl<const TR: u64> Send for Stopwatch<TR>
impl<const TR: u64> Sync for Stopwatch<TR>
impl<const TR: u64> Unpin for Stopwatch<TR>
impl<const TR: u64> UnwindSafe for Stopwatch<TR>
Blanket Implementations§
§impl<T> AnySync for T
impl<T> AnySync for T
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
source§impl<S> CastArc for Swhere
S: CastFromSync + ?Sized,
impl<S> CastArc for Swhere
S: CastFromSync + ?Sized,
source§impl<T> CastFrom for Twhere
T: Any + 'static,
impl<T> CastFrom for Twhere
T: Any + 'static,
source§fn ref_any(&self) -> &(dyn Any + 'static)
fn ref_any(&self) -> &(dyn Any + 'static)
Returns a immutable reference to
Any, which is backed by the type implementing this trait.source§fn mut_any(&mut self) -> &mut (dyn Any + 'static)
fn mut_any(&mut self) -> &mut (dyn Any + 'static)
Returns a mutable reference to
Any, which is backed by the type implementing this trait.