Getting current time in milliseconds Cocos2d

后端 未结 5 2049
误落风尘
误落风尘 2021-01-06 08:32

I\'ve tried to google around but I still can\'t find the best answer.

All I want is very simple, I just want to get the current time in milliseconds.

How can

5条回答
  •  暗喜
    暗喜 (楼主)
    2021-01-06 09:07

    Why not convert the current time into a float value, then multiply the current time by 10^3 to convert it into milliseconds

提交回复
热议问题