Struct cpu_monitor::CpuDuration[][src]

pub struct CpuDuration { /* fields omitted */ }

Like std::time::Duration, but with information about the cpu usage stats.

The way to get this is to subtract one CpuInstant from another.

Methods

impl CpuDuration
[src]

The gap between samples.

The proportion of the time spent idle (between 0 and 1).

The proportion of the time spent not idle (between 0 and 1).

Trait Implementations

impl Debug for CpuDuration
[src]

Formats the value using the given formatter. Read more

impl Copy for CpuDuration
[src]

impl Clone for CpuDuration
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Auto Trait Implementations

impl Send for CpuDuration

impl Sync for CpuDuration