Java Thread Sleep exactly specific amount of time (including some process)

后端 未结 0 933
灰色年华
灰色年华 2021-01-19 05:47

I am trying to develop a simulation and the main thread should wait exactly 40ms in each iteration, because simulation is run with 25fps. In this 40ms, some process time is

相关标签:
回答
  • 消灭零回复
提交回复
热议问题