Android Question Timer Interval (measured in ((((microsecond))))

Khalid.

Member
How to set the timer to the microsecond

B4X:
Sub Activity_Create(FirstTime As Boolean)
If FirstTime Then
Timer.Initialize("timer",1)'[COLOR=rgb(184, 49, 47)]Is it possible to set a timer in microsecond [/COLOR]
End If
End Sub

Sub STT_PartialResult(text As String)
    If text.Trim.length > 0 Then
        partialResultBox.Text = text
        timer.Enabled = False
    Else
        If StopBtn.Enabled Then timer.Enabled = True
    End If
End Sub

Sub timer_Tick
    ''add space/dot when the partial result length is 0
    resultBox.Text = resultBox.Text & " . "
End Sub
 

kimstudio

Active Member
Licensed User
Longtime User
To my knowledge it is not possible. The timer resolution should be in millisecond level.

Edit: millisecond level for Windows. Android timer I am not sure.
 
Upvote 1
Top