timsta97 Posted October 2, 2009 Posted October 2, 2009 About how long would it take to count from 1 to 10,000,000 using a FOR loop?
AdmiralAlkex Posted October 2, 2009 Posted October 2, 2009 Takes about 0.6 seconds here. $Timer = TimerInit() For $X = 1 to 10000000 Next ConsoleWrite(Round(TimerDiff($Timer))/1000 & " seconds" & @CRLF) .Some of my scripts: ShiftER, Codec-Control, Resolution switcher for HTC ShiftSome of my UDFs: SDL UDF, SetDefaultDllDirectories, Converting GDI+ Bitmap/Image to SDL Surface
omikron48 Posted October 2, 2009 Posted October 2, 2009 I think it depends on your hardware configuration.
timsta97 Posted October 2, 2009 Author Posted October 2, 2009 On 10/2/2009 at 12:12 AM, 'omikron48 said: I think it depends on your hardware configuration.I agree, but I would like to know what other people have gotten
Inverted Posted October 2, 2009 Posted October 2, 2009 (edited) On 10/2/2009 at 12:12 AM, 'omikron48 said: I think it depends on your hardware configuration.Correct, here it takes less than 0.5 seconds.EDIT: Lol, AdmiralAlkex Edited October 2, 2009 by Inverted
AdmiralAlkex Posted October 2, 2009 Posted October 2, 2009 (edited) On 10/2/2009 at 12:12 AM, 'omikron48 said: I think it depends on your hardware configuration.Oh my god, you must be a genius if you came up with that yourself! You should get a dozen nobel-prices for that! Edited October 2, 2009 by AdmiralAlkex .Some of my scripts: ShiftER, Codec-Control, Resolution switcher for HTC ShiftSome of my UDFs: SDL UDF, SetDefaultDllDirectories, Converting GDI+ Bitmap/Image to SDL Surface
timsta97 Posted October 2, 2009 Author Posted October 2, 2009 On 10/2/2009 at 12:24 AM, 'Inverted said: Correct, here it takes less than 0.5 seconds.EDIT: Lol, AdmiralAlkexWhat is your hardware configuration?
omikron48 Posted October 2, 2009 Posted October 2, 2009 (edited) Well, with the number of posts I've read here on the forums, it appears that for some times, pointing out the obvious actually helps. I was assuming that this was one of those cases. Edited October 2, 2009 by omikron48
Inverted Posted October 2, 2009 Posted October 2, 2009 On 10/2/2009 at 12:40 AM, 'timsta97 said: What is your hardware configuration?core 2 duo e8400 3ghz + 4gb OCZ Reaper HPC
Firstone Posted October 2, 2009 Posted October 2, 2009 Takes 0.9s for me. This test would involve mainly cpu speed I think. I got a AMD2 4400+ 2.2GHz
timsta97 Posted October 2, 2009 Author Posted October 2, 2009 Thanks everybody, I never realized this would get so many responses.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now