I would like to measure the time between subsequent data arriving in the
astream1_NewText sub (using AsyncstreamsText).
The log values vary randomly between -100,0,83,1... etc although the data are being sent regularly every 50ms via bluetooth.
Could somebody suggest?
astream1_NewText sub (using AsyncstreamsText).
B4X:
Dim dt,dt1 As Long
Sub astream1_NewText(Text As String)
m=m+1
If m Mod 2 =0 Then
dt=DateTime.now
Else
dt1=DateTime.now
End If
Log(dt1-dt)
Could somebody suggest?