i need help about timer api

timer.performWithDelay( 8000,
function()
get(0,60,5)
end
,1)
What Should I do to get best performance if i am using too much timers calling With Delay in my code it is self managed or should i cancel timer after 8000 ms
i am using around 30 timer calls in the same way but in different period in my code

also all timers not loop forever

with respect
[import]uid: 74537 topic_id: 15593 reply_id: 315593[/import]

timer.performWithDelay( 8000,
function()
get(0,60,5)
end
,1)
it will call only one time there is no need to cancel it

you need cancel timer if and if it is loop forever or multiple times [import]uid: 12482 topic_id: 15593 reply_id: 57599[/import]

Thank you @hgvyas123 :slight_smile: for help now i understand what happens clearly :slight_smile:

with respect [import]uid: 74537 topic_id: 15593 reply_id: 57605[/import]

Doesn’t putting a function inside a timer call, call it straight away rather than after the set period? [import]uid: 5354 topic_id: 15593 reply_id: 57616[/import]