mirror of
https://github.com/sharkdp/hyperfine.git
synced 2026-10-30 16:40:18 +00:00
Move to timer module
This commit is contained in:
1 parent
1f3943e7d1
commit
0ffc6d7cc0
6 files changed
+61
-62
No files matched your search
+10
-1
@@ -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,
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user