[Gambas-user] server socket problem

guiodic guido.iodice at ...626...
Mon May 25 00:11:26 CEST 2009




Benoît Minisini wrote:
> 
>> 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
> 
> ------------------------------------------------------------------------------
> Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT
> is a gathering of tech-side developers & brand creativity professionals.
> Meet
> the minds behind Google Creative Lab, Visual Complexity, Processing, & 
> iPhoneDevCamp asthey present alongside digital heavyweights like Barbarian
> Group, R/GA, & Big Spaceship. http://www.creativitycat.com 
> _______________________________________________
> Gambas-user mailing list
> Gambas-user at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
> 
> 

well, http://gambasdoc.org/help/lang/timer
This is the solution, I think.
Thank you Benoit (for this and for Gambas of course, it is great!)




-- 
View this message in context: http://www.nabble.com/server-socket-problem-tp23697722p23698654.html
Sent from the gambas-user mailing list archive at Nabble.com.





More information about the User mailing list