UtSystem or Date() faster?

RusRus
edited February 2016 in Help
I need a simple clock to run in the background while the game is progressing.

I have the choice of using :
JavaScript's requestAnimationFrame() in conjunction with either :
  • UtSystem.getUserTimeMSec() or
  • JavaScript's Date().
I would like to ask: which is more efficient?
Thank you in advance

Comments

Sign In or Register to comment.