ktime_get_real_ns(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ ktime_get_real_ns ✨

okay so bestie, welcome to the Kernel API Manual β€” this one's a tiny lil legend from ./include/linux/timekeeping.h and honestly she's iconic πŸ’…

🌸 NAME 🌸

ktime_get_real_ns β€” grab the current real / wall time, but in nanoseconds πŸ•°οΈβœ¨

πŸ¦‹ SYNOPSIS πŸ¦‹

u64 ktime_get_real_ns (void );

πŸŽ€ ARGUMENTS πŸŽ€

  • void β€” no arguments, none, zero, nada 🫢 she takes nothing and gives you everything (a nanosecond count)

πŸ’– RETURN πŸ’–

the current real time, converted to nanoseconds. that's it. that's the whole vibe. go off πŸ‘‘

🌈 SEE ALSO 🌈


ngl the whole clock family is right there in the see-also list β€” pick your fave, they're all slaying in their own lane πŸ’€ no cap, read them all before you commit to one.

and that's the page, bestie πŸŽ€ fr fr you're now certified in real-time nanoseconds. mwah πŸ’‹

./include/linux Β· October 2026 Β· Kernel API Manual β€” ty for reading, ily, see u in the next page πŸŒΈπŸ¦‹πŸ’œ

πŸ“¦ where this page comes from