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

Move a few modules to utilDavid Peterbefore adoption5c634c9

line 1why, one step back
1use crate::util::units::Second;

Remove timer/internal.rsDavid Peterbefore adoption9d61130

line 2why, one step back
2

Flat directory/module structureDavid Peterbefore adoption30c381f

lines 3–4why, one step back
3pub mod wallclocktimer;
4

Remove cfg-if dependencyDavid Peterbefore adoption60e9771

line 5why, one step back
5#[cfg(windows)]

Refactor timer moduleDavid Peterbefore adoptiondefafdf

line 6why, one step back
6pub mod windows_timer;

Flat directory/module structureDavid Peterbefore adoption30c381f

line 7why, one step back
7

Remove cfg-if dependencyDavid Peterbefore adoption60e9771

line 8why, one step back
8#[cfg(not(windows))]

Refactor timer moduleDavid Peterbefore adoptiondefafdf

line 9why, one step back
9pub mod unix_timer;

Remove timer/internal.rsDavid Peterbefore adoption9d61130

lines 10–26why, one step back
10
11#[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 back
27}