Re: Time elapsed how-to ?
Re: Time elapsed how-to ?
- Subject: Re: Time elapsed how-to ?
- From: Ondra Cada <email@hidden>
- Date: Tue, 14 May 2002 03:20:21 +0200
On Monday, May 13, 2002, at 06:29 , Francis bouchard wrote:
Sorry for the silly question, but I've been looking in the docs for an
hour!
And still missed NSDate? For shame ;)
If I want to do some performance testing how do I calculate the time
passed
during 2point in my program.
Action 1;
Start timer
NSDate *began=[NSDate date];
...
...
...
Action x
Stop timer
Compute the time that is took.
NSTimeInterval spent=-[began timeIntervalSinceNow];
---
Ondra Cada
OCSoftware: email@hidden
http://www.ocs.cz
2K Development: email@hidden
http://www.2kdevelopment.cz
private email@hidden
http://www.ocs.cz/oc
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.