Fastest Way to print

Hi everyone,

I was wondering if my following way is the fastest way to print a variable?

Thanks,
Chris Brasino
[lua]function print1()
print(“x”)
end

timer.performWithDelay(1, print1, -1) [import]uid: 126017 topic_id: 24010 reply_id: 324010[/import]

Hi, you could shorten like this:

timer.performWithDelay(1, function() print("x") end, -1)  

Raúl Beltrán
MIU Games [import]uid: 44101 topic_id: 24010 reply_id: 96755[/import]

Thanks but I think I maybe didn’t explain what I meant well enough. I want to be able to print x as many times as possible in 1 min. [import]uid: 126017 topic_id: 24010 reply_id: 96757[/import]

try

local looping = true  
  
timer.performWithDelay(1000,function() looping=false end)  
  
while looping == true do  
 print(x)  
end  

In principal it should work apart from fact that the endless loop might prevent the timer from firing.
[import]uid: 3826 topic_id: 24010 reply_id: 96790[/import]