Got a case of brain fade. Can someone put me out of my misery and explain how I can effectively halt program flow while I wait for a timer to fire…
function one()
two()
three()
four()
end
function two()
local function waitTimer(event)
r:stopRecording
end
timer.performWithDelay(60, waitTimer,1)
-- don't leave this function until timer has fired
end
update:
amazing what a night’s sleep can do on reflection
am I righ tin thinking I should be using os.time() instead in a while do loop ?
eg.
local t1 = os.time()
while os.time() \<= t1 + 0.06 do
end
Is OS.TIME suited to using such small time deltas eg. 60 ms ? [import]uid: 97524 topic_id: 26924 reply_id: 326924[/import]