Skip to content
Myr

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 file

Take it

1use crate::util::units::Second;23pub mod wallclocktimer;45#[cfg(windows)]6pub mod windows_timer;78#[cfg(not(windows))]9pub mod unix_timer;1011#[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,27}