rubyx/test/mains/source/times_11111_5.rb
Torsten Rüger c0a3c9b65c 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)
2019-08-24 17:00:59 +03:00

16 lines
185 B
Ruby

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