Joke Collection Website - Public benefit messages - How to set the sending interval of java short messages on the server?

How to set the sending interval of java short messages on the server?

You can get a long time to start = system. Currenttimemillis () adds a judgment to the program before it runs, and the long time end = system. Current time millis () if (time end-time start > time to execute) {//TODO only needs to add a code that jumps out of this program, or you can directly throw NewException () here; }