t1 = time$("ms")
for i = 1 to 1000000
next
t2 = time$("ms")
for i = 1 to 1000000
aVeryLongNumericVariableName = i
next
t3 = time$("ms")
for i = 1 to 1000000
a = i
next
t4 = time$("ms")
print "Long variable name: "; (t3 - t2) - (t2 - t1)
print "Short variable name: "; (t4 - t3) - (t2 - t1)
|
input "Enter the name of a variable: ";var$ print "That variable currently has the value ";EVAL(var$)