Java equivalent of setInterval in javascript

白昼怎懂夜的黑 提交于 2019-12-01 15:09:11

You might want to take a look at Timer.

You could also use a ScheduleExecutorService.

I would say you would create a thread and in the thread loop add a System.sleep(10) to make the thread "sleep" for 10 ms before continuing.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!