Can someone point the differences (performance, memory) between using a timer or using the new sleep feature inatead?
With the new sleep feature we can simulate a timer like:
And we can 'activate' the simulated timer just by calling the SleepTimer sub.
So i was wondering what are the differences 'behind the scene' and if there are any advantages or disadvantages of using sleep vs timers.
Regards,
With the new sleep feature we can simulate a timer like:
B4X:
Sub SleepTimer()
Do While True
... some code
Sleep(1000)
End While
End Sub
And we can 'activate' the simulated timer just by calling the SleepTimer sub.
So i was wondering what are the differences 'behind the scene' and if there are any advantages or disadvantages of using sleep vs timers.
Regards,