ktime_get_boottime(9)
π 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:
ktime_get_real(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)ktime_get_raw_ns(9)struct system_time_snapshot(9)struct system_counterval_t(9)struct system_device_crosststamp(9)
mwah π source/version: ./include/linux Β· dated October 2026. thatβs the whole page, bestie. π
π¦ 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