[Gambas-user] server socket problem
Benoît Minisini
gambas at ...1...
Sun May 24 23:57:23 CEST 2009
> Benoît Minisini wrote:
> > But you can enhance your code by fixing your "WAIT pause" instruction.
> >
> > If WRITE blocks, then you must take its execution time into account, and
> > lower
> > the pause accordingly.
> >
> > Regards,
> >
> > --
> > Benoît
>
> oh......... yes!
> I can measure the WRITE execution time.
> This would be usefus to get the real trasfer rate: If WRITE take a second,
> the transer rate is 1KB/s.
> Is it correct?
Not really. This is an instantaneous value, not a mean.
>
> but: I see http://gambasdoc.org/help/cat/time
> "Now" can be used for seconds, that is good enough for transfer rate >
> 1kb/s (in my program, because dim_buf=1024)
>
> Well, how I can measure 1/10 or 1/100 of second?
>
> If it is impossible, I think 1 sec is mostly enough.
Now(), Timer() and WAIT all take a Float value, so you can deal with fraction
of seconds. Due to limitations in the kernel, don't except to be accurate
under the millisecond.
Regards,
--
Benoît
More information about the User
mailing list