[a / b / c / d / e / f / g / gif / h / hr / k / m / o / p / r / s / t / u / v / vg / vm / vmg / vr / vrpg / vst / w / wg] [i / ic] [r9k / s4s / vip] [cm / hm / lgbt / y] [3 / aco / adv / an / bant / biz / cgl / ck / co / diy / fa / fit / gd / hc / his / int / jp / lit / mlp / mu / n / news / out / po / pol / pw / qst / sci / soc / sp / tg / toy / trv / tv / vp / vt / wsg / wsr / x / xs] [Settings] [Search] [Mobile] [Home]
Board
Settings Mobile Home
/g/ - Technology


Thread archived.
You cannot reply anymore.


[Advertise on 4chan]


previous: >>108075578

#define __NR_getitimer            36
#define __NR_setitimer 38

https://man7.org/linux/man-pages/man2/setitimer.2.html

these 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 man

man syscalls

https://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/
>>
bampu
>>
File: file.png (263 KB, 737x1470)
263 KB
263 KB PNG
Love all the caveats
>>
JE@vacation $ ~ sudo touch little\ boys\ and\ girls
>>
>>108085690
my favorite command
>>
why the i. what's it mean.
>>
>>108085946
Interval
>>
>>108085946
>>108086017
>getitimer, setitimer - get or set value of an interval timer
yep yep yep
>>
>>108085594
soooo many manpages are like this, lol



[Advertise on 4chan]

Delete Post: [File Only] Style:
[Disable Mobile View / Use Desktop Site]

[Enable Mobile View / Use Mobile Site]

All trademarks and copyrights on this page are owned by their respective parties. Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.