Thanks for answers,
Ok, there was a mistake copying, it was:
Tcal = INT(1000000 / ((TIMER - Tcal)*1000))
1 mega FOR/NEXT loops divided by the time in mS.
I previously tried in a good old 466DX in Dos6.2
and the result was similar.
I'm trying now with DO/LOOP,
Tcal = TIMER
i = 0
DO
i = i + 1...
Is a compiled .bas program slower than running in QBasic?
I know I just use a FOR/NEXT loop:
Tcal = TIMER
FOR b = 0 TO 1000000
NEXT b
Tcal = INT(1000 / (TIMER - Tcal))
PRINT Tcal; "loops/ms";
Qbasic4.5(.bas) : 1007 loops/ms near 1 µs
Make exe (stand alone): 280...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.