Struct gbench::TimeScope[][src]

pub struct TimeScope { /* fields omitted */ }
Expand description

Starts a benchmarking scope on creation and ends it on drop

TimeScope saves the Instant it was created. When dropped it saves the benchmarking results to the file.

Using scope! macro instead of this struct is recommened.

Implementations

Trait Implementations

Executes the destructor for this type. Read more

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 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.