Posted: Thu Aug 15, 2002 5:08 am
Restored from previous forum. Originally posted by pusztry.
How come when I run this does the t variable act like it is an integer as soon as I divide by 1000 so that I can show the number in seconds instead of milli seconds.
Thanks
Ryan
WinXP, PIII 800 MHz, 512MB RAM, SB Live 5.1, NVidia TNT 2 Ultra
How come when I run this does the t variable act like it is an integer as soon as I divide by 1000 so that I can show the number in seconds instead of milli seconds.
Code: Select all
x = 1
y = 1.000001
t = GetTickCount_()
For i = 1 To 100000000
x=x*y
Next i
t = (GetTickCount_() - t)
t = t / 1000
;Debug t
MessageRequester("Benchmark Results", "It took " + Str(t) + " seconds" + Chr(10) + "To run through 100,000,000 loops.", 0)
EndRyan
WinXP, PIII 800 MHz, 512MB RAM, SB Live 5.1, NVidia TNT 2 Ultra