mod.rs
This file
Path
src/timer/mod.rs
27 lines · 586 bytes · Rust
Last changed by
Refactor timer moduleDavid Peterbefore adoptiondefafdf
History of this fileTake it
Move a few modules to utilDavid Peterbefore adoption5c634c9
line 1why, one step back1use crate::util::units::Second;Remove timer/internal.rsDavid Peterbefore adoption9d61130
line 2why, one step back2Flat directory/module structureDavid Peterbefore adoption30c381f
lines 3–4why, one step back3pub mod wallclocktimer;4Remove cfg-if dependencyDavid Peterbefore adoption60e9771
line 5why, one step back5#[cfg(windows)]Refactor timer moduleDavid Peterbefore adoptiondefafdf
line 6why, one step back6pub mod windows_timer;Flat directory/module structureDavid Peterbefore adoption30c381f
line 7why, one step back7Remove cfg-if dependencyDavid Peterbefore adoption60e9771
line 8why, one step back8#[cfg(not(windows))]Refactor timer moduleDavid Peterbefore adoptiondefafdf
line 9why, one step back9pub mod unix_timer;Remove timer/internal.rsDavid Peterbefore adoption9d61130
lines 10–26why, one step back1011#[derive(Debug, Copy, Clone)]12pub struct CPUTimes {13 /// Total amount of time spent executing in user mode14 pub user_usec: i64,1516 /// Total amount of time spent executing in kernel mode17 pub system_usec: i64,18}1920#[derive(Debug, Copy, Clone)]21pub struct CPUInterval {22 /// Total amount of time spent executing in user mode23 pub user: Second,2425 /// Total amount of time spent executing in kernel mode26 pub system: Second,Flat directory/module structureDavid Peterbefore adoption30c381f
line 27why, one step back27}