block version of loop

no debugging, just worked!
only about 10% slower, nice
also recording qemu-linux times, which are a lot faster(and double bonus, save the startup/syncing)
This commit is contained in:
2019-08-24 17:00:14 +03:00
parent 4676019702
commit c0a3c9b65c
5 changed files with 54 additions and 7 deletions

View File

@ -0,0 +1,15 @@
class Space
def times(n)
i = 0
while( i < n )
yield
i = i + 1
end
return n
end
def main(arg)
return times(5) {
"1".putstring
}
end
end