previous: >>108075578#define __NR_getitimer 36#define __NR_setitimer 38https://man7.org/linux/man-pages/man2/setitimer.2.htmlthese are pretty neat because of their ability to differentiate been real time and virtual time (as well as the user/system split of the virtual time). aside from profiling, though... idk, maybe it's fine? good for timing stuff? i guess it's convenient that it interrupts you with a signal, so you don't have to dedicate a thread to sleeping in a loop or whatever. but getting interrupted in the middle of other stuff could also be annoying. guess it just comes down to the specifics of your use case. anyone here used these for anything other than profiling?relevant resources: man manman syscallshttps://man7.org/linux/man-pages/https://linux.die.net/man/https://elixir.bootlin.com/linux/https://elixir.bootlin.com/musl/https://elixir.bootlin.com/glibc/
#define __NR_getitimer 36#define __NR_setitimer 38
man man
man syscalls
bampu
Love all the caveats
JE@vacation $ ~ sudo touch little\ boys\ and\ girls
>>108085690my favorite command
why the i. what's it mean.
>>108085946Interval
>>108085946>>108086017>getitimer, setitimer - get or set value of an interval timeryep yep yep
>>108085594soooo many manpages are like this, lol