Time$
Sept 4, 2013 9:31:13 GMT -5
Post by krzysztof on Sept 4, 2013 9:31:13 GMT -5
In the following code, expression time$(milliseconds) returns the same value as time$(seconds). In JustBASIC and LibertyBASIC it works fine, but not in RunBASIC.
Start = time$("milliseconds")
x = 1
y = 1.00000001
For i = 1 To 10000000
x = x * y
Next i
Print "Time = " ; time$("milliseconds") - Start
end
The time is returned in milliseconds regardless the choice of units of seconds or milliseconds.