开发者

iPhone app system clock & sleep independent tick count

开发者 https://www.devze.com 2023-01-20 20:19 出处:网络
Is there any way to maintain a tick count in your iPhone app which is开发者_如何学Go : independent of system clock

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

精彩评论

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

关注公众号