A) Lingo (DMX) ms0 = the milliseconds repeat with i = 1 to 100000000 j=1 end repeat ms1 = the milliseconds put (ms1-ms0)
-- 26917 B) VC++ 6.0, console app ... _ftime( &tstruct0 ); for (i=0; i<100000000; i++) j=1; _ftime( &tstruct1 ); ... --> 240 (milliseconds) So a ratio of about 100:1 on my computer. Valentin Pedja wrote: > I don't know if I've asked this before (sorry if I have) > > Just out of curiosity does anyone know is there any speed difference > between Lingo's repeat loop and a repeat loop in some other languages > (C++,Java..etc) > > I know it all depends on what's inside the loop but theoretically if > it's just a simple 1+1 is it the same? > > Cheerio > > Pedja > > > [To remove yourself from this list, or to change to digest mode, go > to http://www.penworks.com/lingo-l.cgi To post messages to the list, > email lingo-l@penworks.com (Problems, email > [EMAIL PROTECTED]). Lingo-L is for learning and helping with > programming Lingo. Thanks!] [To remove yourself from this list, or to change to digest mode, go to http://www.penworks.com/lingo-l.cgi To post messages to the list, email lingo-l@penworks.com (Problems, email [EMAIL PROTECTED]). Lingo-L is for learning and helping with programming Lingo. Thanks!]