views:

31

answers:

1

How can I measure the time it takes to perform a method call? I would like to know in order to time my delays properly. I'd appreciate any help you guys could give me.

//Start measuring here
[self method];
//Stop measuring here
A: 

Use what's called a profiler. I don't know of any for the iPhone, but there's most likely at least one out there. Google for "iphone profiler" or something like that.

alpha123