Struct criterion::measurement::WallTime[][src]

pub struct WallTime;
Expand description

WallTime is the default measurement in Criterion.rs. It measures the elapsed time from the beginning of a series of iterations to the end.

Trait Implementations

This type represents an intermediate value for the measurements. It will be produced by the start function and passed to the end function. An example might be the wall-clock time as of the start call. Read more

This type is the measured value. An example might be the elapsed wall-clock time between the start and end calls. Read more

Criterion.rs will call this before iterating the benchmark.

Criterion.rs will call this after iterating the benchmark to get the measured value.

Combine two values. Criterion.rs sometimes needs to perform measurements in multiple batches of iterations, so the value from one batch must be added to the sum of the previous batches. Read more

Return a “zero” value for the Value type which can be added to another value.

Converts the measured value to f64 so that it can be used in statistical analysis.

Return a trait-object reference to the value formatter for this measurement.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The alignment of pointer.

The type for initializers.

Initializes a with the given initializer. Read more

Dereferences the given pointer. Read more

Mutably dereferences the given pointer. Read more

Drops the object pointed to by the given pointer. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.