TimerTask vs Thread.sleep vs Handler postDelayed - most accurate to call function every N milliseconds?

后端 未结 4 1105
你的背包
你的背包 2020-11-28 22:47

What is the most accurate way to call a function every N milliseconds?

  • Thread with Thread.sleep
  • TimerTask
  • Handler with postDelayed
4条回答
提交回复
热议问题