Delay in the application of the button
Good night. There's a page shift button via Jsoup passer. If the button is pressed many times, the line is coming up and the Jsoup will give each result of the application. If the button is pressed frequently (e.g. more than 1p in 1 s) the event does not work. If there's been a hit and one second, the event works. Please tell me how this works. Thank you.
longvariable to be stored
timeStampThe last compression.
- When compressing, compare the current time to the value of this variable.
- If the difference is more than 1,000ms, you'll have to do whatever you want.
- Immediately after the calculation of the time difference, update the value of the variable from p.1