What does timer_getoverrun () do?

I do not really understand this API from its definition on the man page: timer_getoverrun ().

Can someone help me explain with a timer context?

Thank you in advance

+4
source share
1 answer

If you create, for example, a 1 ms timer, but due to various delays that are required, for example, 4.5 ms from a signal is generated until it is actually received by the application, then there could be 3 more signals (but this not so, since only one signal is waiting at a time). timer_getoverrun() retrieves the value 3 - the number of generated signals.

+3
source

Source: https://habr.com/ru/post/1347866/


All Articles