ktime_get_raw_ns(9)
π ktime_get_raw_ns
okay so bestie, welcome to the ktime_get_raw_ns(9) page β that's the kernel API manual, and yes it's pronounced "k-time get raw nanoseconds" and yes you're gonna slay it π
β¨ NAME β¨
ktime_get_raw_ns β get the raw monotonic time, but make it nanoseconds π°οΈβ¨
πΈ SYNOPSIS πΈ
u64 ktime_get_raw_ns (void );
that's the whole thing. no cap. π«Ά
π ARGUMENTS π
voidβ literally no arguments, bestie. it takes nothing. zero. empty set. the void is the vibe π
β RETURN β
the current raw monotonic time, converted to nanoseconds. that's it, that's the tea π
π¦ SEE ALSO π¦
kernel file ./include/linux/timekeeping.h β go read it, it's giving main character energy πβ¨
and the whole friend group of time functions:
ktime_get_real(9)ktime_get_boottime(9)ktime_get_clocktai(9)ktime_mono_to_real(9)ktime_get_ns(9)ktime_get_real_ns(9)ktime_get_boottime_ns(9)ktime_get_clocktai_ns(9)struct system_time_snapshot(9)struct system_counterval_t(9)struct system_device_crosststamp(9)
like, the entire clock clique, iykyk π
lowkey reminder: this one gives you the raw monotonic time β don't go swapping it for the other clocks unless you actually mean it, bestie π
and that's the page! source lives in ./include/linux, dated October 2026, and this adorable little entry is ktime_get_raw_ns(9) from the Kernel API Manual. periodt. π
ππ«Ά
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms