pub fn on_switch(outgoing: usize)Expand description
Record an actual context switch away from outgoing (its id in
preempt::tcb::TASKS), crediting it with the cycles since the last
dispatch and resetting the stamp for whichever task runs next. No-op
if accounting hasn’t started yet (on_first_dispatch not called).