Hi,
I create a timer app with beep, vibrate functions. I Initialize with 1000 and on timer_tick i show the minute and second on label.
The problem is not working with the real time. I compared with two different clocks and the app is slow 2 seconds in 8 minutes first.
What can i do to countdown is REAL?
JPG shows comparative
Tanks and sorry my brazilian english ?
I create a timer app with beep, vibrate functions. I Initialize with 1000 and on timer_tick i show the minute and second on label.
The problem is not working with the real time. I compared with two different clocks and the app is slow 2 seconds in 8 minutes first.
What can i do to countdown is REAL?
JPG shows comparative
START:
Sub Timer_start
Timer1.Initialize("Timer1", 1000)
Timer1.Enabled = True
End Sub
Timer_Tick:
Sub Timer1_Tick
'CountDown1 is Minute
'CountDown2 is Second
'Both is shows in label
'Log(CountDown1 & ":" & CountDown2)
If CountDown2 <= 0 Then
CountDown1 = CountDown1 - 1
CountDown2 = 59
If CountDown1 < 0 Then
Timer1.Enabled = False
CountDown2 = 0
CountDown1 = 0
End If
'ToastMessageShow(CountDown1,False)
Else
CountDown2 = CountDown2 - 1
End If
End Sub
Tanks and sorry my brazilian english ?