pub struct Sample {
pub iterations: u64,
pub elapsed: Nanoseconds<u64>,
}
Expand description
A sample of the execution time of a function.
Fields§
§iterations: u64
The number of times the function was executed.
elapsed: Nanoseconds<u64>
The number of nanoseconds that elapsed while executing the function.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Sample
impl RefUnwindSafe for Sample
impl Send for Sample
impl Sync for Sample
impl Unpin for Sample
impl UnwindSafe for Sample
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