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];
//Sto开发者_如何学运维p measuring here
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.
精彩评论