开发者

What does timer_getoverrun( ) do?

开发者 https://www.devze.com 2023-02-24 01:13 出处:网络
I am not very clear with 开发者_运维知识库this API from it\'s definition in man page: timer_getoverrun( ).

I am not very clear with 开发者_运维知识库this API from it's definition in man page: timer_getoverrun( ).

Can someone help me to explain, with the context of a timer?

Thanks in advance


If you create e.g. a 1ms timer, but due to various delays it takes e.g 4.5ms from the signal is generated until it is actually accepted by the application, there could have been 3 more signals issued in the meantime (but isn't, since only one signal is pending at a time). timer_getoverrun() retrieves the value 3 - the number of signals not generated.

0

精彩评论

暂无评论...
验证码 换一张
取 消