Re: Time elapsed how-to ?
Re: Time elapsed how-to ?
- Subject: Re: Time elapsed how-to ?
- From: "Michael P. Rogers" <email@hidden>
- Date: Mon, 13 May 2002 12:45:37 -0500
Sorry for the silly question, but I've been looking in the docs for an hour!
If I want to do some performance testing how do I calculate the time passed
during 2point in my program.
You could see if NSCalendarDate's timeIntervalSinceNow method would
work. Call it twice, and subtract.
The only thing I'm not sure about is whether or not it'll provide the
precision you'll need. The documentation says that the return time,
NSTimeInterval, provides sub-millisecond precision, but whether it
gets that with the above method is another question. Just try it and
see what happens.
Michael
--
Dr. Michael P. Rogers
Office: 203G Shilling Hall
Phone: 217-424-6327 (W) 309-828-8655 (H) 309-825-6454 (C)
E-Mail: email@hidden
Web Sites:
http://math.millikin.edu/
Astronomy Site:
http://twincityamateurastronomers.org
Flying Lessons:
http://www.imageair.com/
_______________________________________________
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.