time_delta(9)
π time_delta(9) β from the Kernel API Manual, bestie
okay so you know how the kernel is literally always comparing timestamps and someone has to do the math? yeah. that someone is time_delta, and she ate. no cap.
β¨ NAME β¨
time_delta β calculate the delta between new and old time stamp ππ«
πΈ SYNOPSIS πΈ
s64 time_delta (u64 after , u64 before );
π ARGUMENTS π
afterβ your first comparable, typed as au64(this is the "new" one, main character energy)beforeβ your second comparable, also au64(the "old" one, respectfully)
fr fr just hand her two u64 values and she'll sort out the rest.
π¦ RETURN π¦
the time difference, which is >= 0 β β yes bestie, always zero or up, never ever negative, we don't do negativity here π
π SEE ALSO π
- Kernel file
./tools/sched_ext/include/scx/common.bpf.hβ go peek, iykyk π RESIZABLE_ARRAY(9)MEMBER_VPTR(9)ARRAY_ELEM_PTR(9)__sink(9)time_after(9)time_before(9)time_after_eq(9)time_before_eq(9)time_in_range(9)time_in_range_open(9)
that's the whole time-comparison friend group right there, and time_delta is the one who actually does the subtraction π«Ά
and that's the page, bestie π brought to you by ./tools/sched_ext/include/scx, dated October 2026, under the very iconic title time_delta(9) β slay, go compare some timestamps ππ§
π¦ 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