Skip to main content

get_ticks

Function get_ticks 

Source
pub fn get_ticks() -> usize
Expand description

起動時からのシステムティック(10ms単位)を取得します。 ARM64 システムカウンタ (cntpct_el0) 直読の高精度ミリ秒から算出するため、 タイマー割り込みのドリフトやスキップに左右されず、常に正確な実時間経過を返します(tickless idle 前提対応)。