Tayfur Well-Known Member Licensed User Longtime User Oct 10, 2016 #1 I have a questions; I have a sub. And it s processing time is very long, for example 5 second. And Same app has a timer and interval=1000(1second.) I have a code like under below... what is result on run time? do "timertick" wait "long proceess time"? (wait 5 second) or broken code Or broken "longprocesstime" sub and start "timerrick" or... ?? Code: Copy Private Sub AppStart Serial1.Initialize(115200) Log("AppStart") sss=1 Timers.Initialize("T_tick",1000) Timers.Enabled=True Log("AppStart") LongProcessTime End Sub Sub LongProcessTime '-----Long times procvess steps... '--- it need 5 second End sub
I have a questions; I have a sub. And it s processing time is very long, for example 5 second. And Same app has a timer and interval=1000(1second.) I have a code like under below... what is result on run time? do "timertick" wait "long proceess time"? (wait 5 second) or broken code Or broken "longprocesstime" sub and start "timerrick" or... ?? Code: Copy Private Sub AppStart Serial1.Initialize(115200) Log("AppStart") sss=1 Timers.Initialize("T_tick",1000) Timers.Enabled=True Log("AppStart") LongProcessTime End Sub Sub LongProcessTime '-----Long times procvess steps... '--- it need 5 second End sub
Erel B4X founder Staff member Licensed User Longtime User Oct 10, 2016 #2 Tayfur said: do "timertick" wait "long proceess time"? (wait 5 second) Click to expand... Yes. What are you doing that takes 5 seconds to complete? Upvote 0
Tayfur said: do "timertick" wait "long proceess time"? (wait 5 second) Click to expand... Yes. What are you doing that takes 5 seconds to complete?
Tayfur Well-Known Member Licensed User Longtime User Oct 10, 2016 #3 Erel said: Yes. What are you doing that takes 5 seconds to complete? Click to expand... Yes , understand for process flow for Arduinos boards. Thanks for info Upvote 0
Erel said: Yes. What are you doing that takes 5 seconds to complete? Click to expand... Yes , understand for process flow for Arduinos boards. Thanks for info