[fpc-pascal] Timer in X11
Marco van de Voort
marcov at stack.nl
Wed Dec 21 19:06:44 CET 2011
In our previous episode, Henry Vermaak said:
> >> select() doesn't time out. So your error can be as much as 990ms per
> >> iteration of the loop. So much for precision then.
> >
> > select() doesn't seam to return how much time has passed, so how do
>
> 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.
>
> > you expect me to know the value when the only thing FPC offers for
> > time counting is Now() and each UNIX goes a wildly different way about
> > this?
>
> I've offered a solution in my reply to Martin Schreiber, but fpc doesn't
> offer functions for posix timers. Perhaps you can check if Marco is in
> a good mood?
Not likely with Linux-only stuff in the same msg. That's where I stopped
reading pretty much.
More information about the fpc-pascal
mailing list