Struct alacritty::display::meter::Meter[][src]

pub struct Meter {
    times: [f64; 10],
    avg: f64,
    index: usize,
}
Expand description

The meter.

Fields

times: [f64; 10]

Track last 60 timestamps.

avg: f64

Average sample time in microseconds.

index: usize

Index of next time to update..

Implementations

Create a meter.

Get a sampler.

Get the current average sample duration in microseconds.

Add a sample.

Used by Sampler::drop.

Trait Implementations

Returns the “default value” for a 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.