Why do people not Read The Fine 8-) Manuals.... O:-) O:-)
Resolution is either seconds or nanoseconds.
Title: Re: Simple question about TFPHTTPClient.IOTimeout
Post by: GAN on January 15, 2020, 11:40:40 pm
@Thaddy thanks for the link, but they must be milliseconds because with values less than 200 (approx.) I get 90% errors and with value of 1000/1500 works fine.
Title: Re: Simple question about TFPHTTPClient.IOTimeout
Post by: lucamar on January 16, 2020, 02:02:02 pm
Of course: time.tv_sec is seconds, which multiplied by 1000 give milliseconds; time.tv.usec are microseconds which divided by 1000 give, again, milliseconds.
The links posted by Thaddy are (somewhat) useful to know why a time struct has to be used: for the system call that implements the timer. But Thaddy, note: