First, give yourself a chance to fail. Failure is the easiest way to wake up at once.
Secondly, after failure, everyone will think about why he failed. You can list the things you often do some time ago, and then carefully analyze the pros and cons of each item (the pros and cons are mainly for your future life). The advantages outweigh the disadvantages, so don't care too much, but the advantages are not as good as the disadvantages. You must get rid of it (method: when you see others doing it, you can do something else and cultivate other elegant hobbies. Or try to stay away from the temptation, just as you see others playing games and you want to play, but you can go out of the dormitory, breathe fresh air, relax and go in later. For example, not all people who quit smoking can't quit, not to mention your little problem, push yourself several times, think twice before you do anything, and weigh the pros and cons carefully)
There is also a question about the goal. In fact, few people can stick to their goals. You don't need to set a time goal, just want to do something in the next minute. In this case, you will find an excuse in your heart. You can set a more realistic and long-term goal, such as how many points you want to test, how much effort you need, and how big the gap is. After you figure it out, you will work towards this goal.
This is just my personal experience, which is of no value to you and won't waste me typing for so long.