Created
August 15, 2023 16:48
-
-
Save shasisingh/c25fc093570fa6b8a7a67f21777600fb to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public static void main(String[] args) { | |
var task = new TimerTask() { | |
@Override | |
public void run() { | |
System.out.println("run some task"); | |
} | |
}; | |
var timeer = new Timer(); | |
timeer.scheduleAtFixedRate(task, 10, 10); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Timer based on pure java