On Wed, Dec 21, 2011 at 6:24 PM, Henry Vermaak <henry.verm...@gmail.com> wrote: > select() on linux will actually modify the timeout (fpc overloads select(), > but presumably this will still happen when you use ptimeval for the > timeout). You shouldn't rely on this, though, read the man page for more > info. This is what Mark was trying to say in his reply to your original > message.
Ummm, that's quite interresting, I hadn't understood in the first time as I hadn't yet experience with select. Looks like a possibility for Linux until a GetMilisecondsCount is implemented. > Perhaps it's better to implement a thread based timer? Not for LCL-CustomDrawn-X11, I think what is being achieved is already a good base, it only needs to be improved. Threads will probably bring more problems then solve. -- Felipe Monteiro de Carvalho _______________________________________________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal