开发者

How can I measure the time it takes to perform a method?

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜