Iphone 如何测量执行方法所需的时间?

Iphone 如何测量执行方法所需的时间?,iphone,iphone-sdk-3.0,ios4,Iphone,Iphone Sdk 3.0,Ios4,如何度量执行方法调用所需的时间?我想知道,为了合理安排我的延误时间。我很感激你们能给我的任何帮助 //Start measuring here [self method]; //Stop measuring here 使用所谓的探查器。我不知道iPhone有什么,但很可能至少有一款。谷歌搜索“iphoneprofiler”或类似的东西。可能重复

如何度量执行方法调用所需的时间?我想知道,为了合理安排我的延误时间。我很感激你们能给我的任何帮助

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

使用所谓的探查器。我不知道iPhone有什么,但很可能至少有一款。谷歌搜索“iphoneprofiler”或类似的东西。

可能重复