#[repr(i32)]pub enum TimerType {
NONE = -1,
REAL = 0,
VIRTUAL = 1,
PROF = 2,
}
Expand description
sys_settimer / sys_gettimer 中设定的 which,即计时器类型
Variants§
NONE = -1
表示目前没有任何计时器(不在linux规范中,是os自己规定的)
REAL = 0
统计系统实际运行时间
VIRTUAL = 1
统计用户态运行时间
PROF = 2
统计进程的所有用户态/内核态运行时间
Trait Implementations§
source§impl PartialEq for TimerType
impl PartialEq for TimerType
impl Copy for TimerType
impl Eq for TimerType
impl StructuralEq for TimerType
impl StructuralPartialEq for TimerType
Auto Trait Implementations§
impl RefUnwindSafe for TimerType
impl Send for TimerType
impl Sync for TimerType
impl Unpin for TimerType
impl UnwindSafe for TimerType
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more