Re: About gtk_timeout_add



so resolution is limited to what the os provides (i.e.: linux 10ms).

i use setitimer to verify the resolution, it is 10ms for linux. That is if
the period >= 10(ms), the alarm signal handler is called (1000/period)
times/second. if period <= 10(ms), the handler is called 100 times/second. i
guess it will be the same for gtk_timeut_add, but it is different. But i do
not know why? i know the call rate will depend on complexity of the callback
function, so in order to test the called rate, the only job in callback
function is to increase the counter.

Paul Lin







[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]