Move to timer module

This commit is contained in:
David Peter authored and David Peter committed 2022-02-22 13:24:05 +01:00
1 parent 1f3943e7d1
commit 0ffc6d7cc0
6 files changed
+61 -62

No files matched your search

+10 -1
View File
@@ -2,9 +2,18 @@
use std::mem;
use crate::timer::{CPUInterval, CPUTimes};
use crate::timer::CPUTimes;
use crate::util::units::Second;
#[derive(Debug, Copy, Clone)]
pub struct CPUInterval {
/// Total amount of time spent executing in user mode
pub user: Second,
/// Total amount of time spent executing in kernel mode
pub system: Second,
}
pub struct CPUTimer {
start_cpu: CPUTimes,
}