ktime_get_boottime(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– NAME πŸ’–

okay so you’re on the Kernel API Manual page for ktime_get_boottime(9) β€” the one that gets monotonic time since boot in ktime_t format. iconic. πŸ’…

✨ SYNOPSIS ✨

ktime_t ktime_get_boottime (void );

πŸŽ€ ARGUMENTS πŸŽ€

  • void β€” no arguments. literally none, bestie, not a single one. 🫢

πŸ¦‹ DESCRIPTION πŸ¦‹

This one is similar to CLOCK_MONTONIC/ktime_get, but plot twist: it also includes the time spent in suspend. yes way. ✨

🌸 RETURN 🌸

Returns monotonic time since boot in ktime_t format. periodt. πŸ’–

πŸ’… SEE ALSO πŸ’…

Kernel file ./include/linux/timekeeping.h, plus the whole friend group:

mwah πŸ’‹ source/version: ./include/linux Β· dated October 2026. that’s the whole page, bestie. πŸŽ€

πŸ“¦ where this page comes from