ktime_get_raw_ns(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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:

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