Can you advise how to make actual time being displayed regardless on other running processes?
When I use timer and timer tick (see the code), it runs well. But when I run other processes in the code (like sending/receiving data), the time is stopped and starts again till the process is completed. It looks like when program is "busy", the timer is stopped for the "busy" time. I want to push the timer to the top priority. I tried DoEvents but no effect. Or is there any other way to show the time?
When I use timer and timer tick (see the code), it runs well. But when I run other processes in the code (like sending/receiving data), the time is stopped and starts again till the process is completed. It looks like when program is "busy", the timer is stopped for the "busy" time. I want to push the timer to the top priority. I tried DoEvents but no effect. Or is there any other way to show the time?
B4X:
Sub App_Start
Form1.Show
Timer1.Interval = 1000
Timer.Enabled = true
TimerFormat("HH:mm:ss")
End Sub
Sub Timer1_Tick
label1.Text = time(now)
End Sub