Struct glassbench::TaskMeasure
source · [−]Expand description
The result of the measure of a task: number of iterations and total duration
Fields
iterations: u32
total_duration: Duration
Implementations
sourceimpl TaskMeasure
impl TaskMeasure
sourcepub fn mean_duration(&self) -> Duration
pub fn mean_duration(&self) -> Duration
compute the only value you’re normally interested into: the mean duration
Trait Implementations
sourceimpl Clone for TaskMeasure
impl Clone for TaskMeasure
sourcefn clone(&self) -> TaskMeasure
fn clone(&self) -> TaskMeasure
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for TaskMeasure
impl Debug for TaskMeasure
impl Copy for TaskMeasure
Auto Trait Implementations
impl RefUnwindSafe for TaskMeasure
impl Send for TaskMeasure
impl Sync for TaskMeasure
impl Unpin for TaskMeasure
impl UnwindSafe for TaskMeasure
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