Time a function: Difference between revisions
Time a function in BASIC256
(→{{header|Picat}}: code tags) |
(Time a function in BASIC256) |
||
Line 651:
See also: [[#BBC BASIC|BBC BASIC]], [[#PureBasic|PureBasic]].
=={{header|BASIC256}}==
<lang BASIC256>call cont(10000000)
print msec; " milliseconds"
t0 = msec
call cont(10000000)
print msec+t0; " milliseconds"
end
subroutine cont(n)
sum = 0
for i = 1 to n
sum += 1
next i
end subroutine</lang>
=={{header|Batch File}}==
|