Struct cpu_time::ProcessTime[][src]

pub struct ProcessTime(_);

CPU Time Used by The Whole Process

This is an opaque type similar to std::time::Instant. Use elapsed() or duration_since() to get meaningful time deltas.

Methods

impl ProcessTime
[src]

Get current CPU time used by a process process

Panics

This method panics if linux kernel doesn't support CLOCK_PROCESS_CPUTIME_ID, which works since linux 2.6.12 (~ year 2005).

Returns the amount of CPU time used from the previous timestamp to now.

Returns the amount of CPU time used from the previous timestamp.

Trait Implementations

impl Copy for ProcessTime
[src]

impl Clone for ProcessTime
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl PartialEq for ProcessTime
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Eq for ProcessTime
[src]

impl Debug for ProcessTime
[src]

Formats the value using the given formatter. Read more

impl Hash for ProcessTime
[src]

Feeds this value into the given [Hasher]. Read more

Feeds a slice of this type into the given [Hasher]. Read more

Auto Trait Implementations

impl Send for ProcessTime

impl Sync for ProcessTime