Skip to main content

busy_cycles

Function busy_cycles 

Source
pub fn busy_cycles(id: usize) -> u64
Expand description

Total cycles task id has spent running, since boot, as of its last completed dispatch — a task that is still running right now (never yet switched away from) is not included until its next switch. Budget enforcement needs the up-to-the-moment figure for whichever task is currently running; see busy_cycles_live.