DO NOT REPLY TO THIS MESSAGE. INSTEAD, POST ANY RESPONSES TO THE LINK BELOW.
Thanks for your comment.
Your comment is absolutely correct, but this would be some kind of
"undefined behavior" (and usage).
Basically the "missed_by" mechanism can only work correctly (as intended)
if you call Fl::repeat_timeout() with the same callback that triggered it -
otherwise 'missed_by' must be considered just a random (undefined) value.
Strictly spoken, the timeout you start with Fl::repeat_timeout() need not
be exactly the same callback but it must be directly related to the timeout
That said, Fl::repeat_timeout() must only be called
(a) within a callback triggered by Fl::add/repeat_timeout and
(b) with the same or a directly related timer
I believe the documentation needs to be clarified...
This is a task to be done in FLTK 1.4, hence I tend to close this STR w/o
backporting anything to FLTK 1.3.
[ Direct Link to Message ]