> 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@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user