Accurate timing in iOS

后端 未结 7 1381
生来不讨喜
生来不讨喜 2020-12-01 02:32

I am looking at the \'Metronome\' sample code from the iOS SDK (http://developer.apple.com/library/ios/#samplecode/Metronome/Introduction/Intro.html). I am running the metro

7条回答
  •  南笙
    南笙 (楼主)
    2020-12-01 03:01

    The problem is more fundamental. IOS is not a real time OS so the time it takes to do various operations is not "determinate". It varies. For accuracy you would need a real time OS like RIM's New QNX operating system.

提交回复
热议问题