开发者

iPhone app system clock & sleep independent tick count

Is there any way to maintain a tick count in your iPhone app which is开发者_如何学Go :

  1. independent of system clock
  2. is not impacted by device sleep (unlike CACurrentMediaTime(), UpTime() etc.)


Try this class, it will access the Mach kernel time on the device (kind like tick count since system boot) https://github.com/maddox/cocoaheads_gltouches/blob/master/Classes/MachTimer.m

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜