开发者

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

开发者 https://www.devze.com 2023-01-22 12:46 出处:网络
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.

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

精彩评论

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