On May 24, 2007, at 9:31 AM, Marc R.J. Brevoort wrote:

> How accurate are add_timeout/repeat_timeout? I only see documentation
> about repeat_timeout having a 'fair degree of accuracy', how  
> accurate is
> that?

This depends on two factors. The timer uses the "common" OS timer,  
whichever that may be on your platform. Even those have different  
resolution between different platform implementations. On MSWin, you  
can probably count on 1/100sec, maybe better.

The second factor is your work load on the system. The timer send a  
signal (or message) to FLTK which will be handled the next time you  
application returns to the main loop (calls Fl::run or wait, or  
returns from a callback). So if you have a three minute operation  
that never returns to FLTK, no timers will be called for three minutes.

Matthias

----
http://robowerk.com/


_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk

Reply via email to