Struct microbench::Measurement [] [src]

pub struct Measurement {
    pub iterations: u64,
    pub nanoseconds: u64,
}

A measurement of the execution time of a function.

Fields

The number of times the function was called.

The number of nanoseconds that elapsed while calling the function.

Methods

impl Measurement
[src]

Constructs a new Measurement.

Trait Implementations

impl Copy for Measurement
[src]

impl Clone for Measurement
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for Measurement
[src]

Formats the value using the given formatter.