i am trying to slow down clicking on some button
i thought of using date and time for that so each 600 milliseconds the user can click
i have tried to do the following by some threads in this forum
but the log shows big numbers that i couldn't figure out how to convert them to actual milliseconds
i thought of using date and time for that so each 600 milliseconds the user can click
i have tried to do the following by some threads in this forum
B4X:
Sub btn1_Click
Dim sendtime As Long
Dim lastsendtime As Long
sendtime = DateTime.Now
Log(sendtime - lastsendtime)
'here i am trying to capture if the difference between two times is smaller than or equal 600 then return
lastsendtime = DateTime.Now
End Sub
but the log shows big numbers that i couldn't figure out how to convert them to actual milliseconds