Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我目前有一些使用 sigaction 将处理程序与 SIGALRM 信号相关联的 C 代码。然后我做警报(TIME_OUT_IN_SECONDS)。问题是,我需要毫秒,而不是秒,并且警报需要一个整数。如何设置信号以毫秒为单位触发?
怎么用setitimer()?
setitimer()