8

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?

Oliver Hume
  • 489
  • 1
  • 7
  • 19

1 Answers1

5

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

Jesse Rusak
  • 56,530
  • 12
  • 101
  • 102
f3lix
  • 29,500
  • 10
  • 66
  • 86