fn read_stats(&self) -> Option<CpuTime> {
        if let Ok(mut kernelstats) = KernelStats::new() {
            return Some(kernelstats.cpu_time.remove(self.id as usize));
        }
        None
    }
/// Reads content from /proc/stat and extracts the stats of the CPU core
Reads content from /proc/stat and extracts the stats of the CPU core
Reads content from / proc / stat and extracts the stats of the CPU core
fn read_stats(&self) -> Option<CpuTime> {
        if let Ok(mut kernelstats) = KernelStats::new() {
            return Some(kernelstats.cpu_time.remove(self.id as usize));
        }
        None
    }
fn read_stats ( & self ) -> Option < CpuTime > { if let Ok ( mut kernelstats ) = KernelStats :: new ( ) { return Some ( kernelstats . cpu_time . remove ( self . id as usize ) ) ; } None }
Reads content from /proc/stat and extracts the stats of the CPU core
Reads content from / proc / stat and extracts the stats of the CPU core
&self
&self