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
type Intermediate = Instant
type Intermediate = Instant
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
impl RefUnwindSafe for WallTime
impl UnwindSafe for WallTime