You can load the URL request and use NSDate to find out how much time has passed ... suggests that you are using a UIWebView to display your page to measure load time, I would capture the time when the URL was requested, and then to delegate methods - (void) webViewDidFinishLoad: (UIWebView *) webView registers the time again and takes a value, for example
If you want to do this without a UIWebView, you can just use NSURLRequest / NSURLConnection ... you can do the following (I will do it synchronously, you can also do it async)
NSDate *start=[NSDate date]; NSURLRequest *r= [[ [NSURLRequest alloc] initWithURL:url] autorelease]; NSData *response= [NSURLConnection sendSynchronousRequest:r returningResponse:nil error:nil]; NSDate *end=[NSDate date]; double ellapsedSeconds= [start timeIntervalSinceDate:end];
source share