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.



    1. I' long variable to be stored timeStamp The last compression.
    2. When compressing, compare the current time to the value of this variable.
    3. If the difference is more than 1,000ms, you'll have to do whatever you want.
    4. Immediately after the calculation of the time difference, update the value of the variable from p.1



Suggested Topics

  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2