So let’s say I do this
function myFunction()
print("YAY!")
end
timer.performWithDelay (5000, myFunction, 1)
Does myFunction run in the background at the time of the timer’s triggered and show the result after 5 seconds?
OR, does myFunction run after 5 second?
I am suspecting it’s the former because once the timer triggers, there seems to be nothing I can do to stop myFunction from running.
Is there a way to do this?
Btw, Which one is less resource heavy, using timer.performWithDelay, or grabbing time stamps using system.getTimer and enterFrame event to get time elapsed?
[import]uid: 39031 topic_id: 13295 reply_id: 313295[/import]