Performance counters on the iPhone

I'm trying to find the best method of incode performance monitoring on the iPhone.

On a windows platform I would use the following functions :

QueryPerformanceCounter((LARGE_INTEGER *)&ctr);
QueryPerformanceFrequency((LARGE_INTEGER *)&freq);

Does anything like this exist on the iPhone? Whats the highest resolution I can time something without using an external tool such as Instruments or Shark?


I think mach_absolute_time is what you are looking for. For more information:

  • Technical Q&A QA1398: Mach Absolute Time Units
  • Tutorial: Performance and Time
  • mach_ absolute_ time on the iPhone
  • 链接地址: http://www.djcxy.com/p/42374.html

    上一篇: 基于.resx文件编辑器?

    下一篇: iPhone上的性能计数器