Created
May 26, 2014 13:12
-
-
Save ybonnel/39b3e53dd3d914fab02a 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
ScheduledExecutorService scheduler = Executors.newSingleThreadScheduledExecutor(); | |
scheduler.scheduleAtFixedRate( | |
() -> System.out.println(LocalTime.now().toString()), | |
0, 1, TimeUnit.SECONDS); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment