Struct tiny_bench::TimingData
source · pub struct TimingData {
pub min_nanos: u128,
pub max_nanos: u128,
pub elapsed: u128,
pub iterations: u128,
}
Expand description
Data collected after a timed run
Fields§
§min_nanos: u128
The last amount of time elapsed for an iteration
max_nanos: u128
The most amount of time elapsed for an iteration
elapsed: u128
The total elapsed time for all iterations combined
iterations: u128
How many iterations were ran
Implementations§
source§impl TimingData
impl TimingData
sourcepub fn pretty_print(&self)
pub fn pretty_print(&self)
Print the data with pretty colors to stdout
Trait Implementations§
source§impl Clone for TimingData
impl Clone for TimingData
source§fn clone(&self) -> TimingData
fn clone(&self) -> TimingData
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for TimingData
impl Debug for TimingData
impl Copy for TimingData
Auto Trait Implementations§
impl Freeze for TimingData
impl RefUnwindSafe for TimingData
impl Send for TimingData
impl Sync for TimingData
impl Unpin for TimingData
impl UnwindSafe for TimingData
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)