(make sure you turn off the debugger first)
Code: Select all
min.f=100.55
mean.f=55.34
max.f=33.21
a=0
For m=1 To 10
t=ElapsedMilliseconds()
For n=1 To 100000000
If max<mean
Swap max,mean
EndIf
If mean<min
Swap mean,min
EndIf
If max<mean
Swap max,mean
EndIf
Next
t=ElapsedMilliseconds()-t
a+t
Next
MessageRequester("",Str(a/10))
min.f=100.55
mean.f=55.34
max.f=33.21
a=0
For m=1 To 10
t=ElapsedMilliseconds()
For n=1 To 100000000
If max<mean
tq.f=max
max=mean
mean=tq
EndIf
If mean<min
tq.f=mean
mean=min
min=tq
EndIf
If max<mean
tq.f=max
max=mean
mean=tq
EndIf
Next
t=ElapsedMilliseconds()-t
a+t
Next
MessageRequester("",Str(a/10))
;970 885
;948 887
;962 895
;996 882
;1007 895
Code: Select all
min.f=100.55
mean.f=55.34
max.f=33.21
a=0
For m=1 To 10
t=ElapsedMilliseconds()
For n=1 To 100000000
If max<mean
Swap max,mean
EndIf
If mean<min
Swap mean,min
EndIf
If max<mean
Swap max,mean
EndIf
Next
t=ElapsedMilliseconds()-t
a+t
Next
a2=a
min.f=100.55
mean.f=55.34
max.f=33.21
a=0
For m=1 To 10
t=ElapsedMilliseconds()
For n=1 To 100000000
If max<mean
tq.f=max
max=mean
mean=tq
EndIf
If mean<min
tq.f=mean
mean=min
min=tq
EndIf
If max<mean
tq.f=max
max=mean
mean=tq
EndIf
Next
t=ElapsedMilliseconds()-t
a+t
Next
MessageRequester("",Str(a2/10)+" "+Str(a/10))
;970 885
;948 887
;962 895
;996 882
;1007 895
;770 896
;770 896
;768 898
;771 896