NSDate autorelease problem

2008-09-03 Thread jeffs87
Hi, I'm trying to calculate the elapsed time by calling this twice and getting the difference. double Seconds() { return [[NSDate date] timeIntervalSince1970]; } This is being called from an audio play back proc which is being called about 100 times a second. I'm getting this error

Re: NSDate autorelease problem

2008-09-03 Thread Jean-Daniel Dupas
Le 3 sept. 08 à 19:02, [EMAIL PROTECTED] a écrit : Hi, I'm trying to calculate the elapsed time by calling this twice and getting the difference. double Seconds() { return [[NSDate date] timeIntervalSince1970]; } This is being called from an audio play back proc which is being called

Re: NSDate autorelease problem

2008-09-03 Thread Jules Colding
On 03/09/2008, at 19.02, [EMAIL PROTECTED] wrote: Hi, I'm trying to calculate the elapsed time by calling this twice and getting the difference. double Seconds() { return [[NSDate date] timeIntervalSince1970]; } There is no need to use cocoa for everything. Use gettimeofday()

Re: NSDate autorelease problem

2008-09-03 Thread j o a r
On Sep 3, 2008, at 10:02 AM, [EMAIL PROTECTED] wrote: I'm trying to calculate the elapsed time by calling this twice and getting the difference. double Seconds() { return [[NSDate date] timeIntervalSince1970]; } How about replacing that with: return [NSDate

Re: NSDate autorelease problem

2008-09-03 Thread Gregory Weston
[EMAIL PROTECTED] wrote: I'm trying to calculate the elapsed time by calling this twice and getting the difference. double Seconds() { return [[NSDate date] timeIntervalSince1970]; } This is being called from an audio play back proc which is being called about 100 times a second. I'm

Re: NSDate autorelease problem

2008-09-03 Thread David Duncan
On Sep 3, 2008, at 10:02 AM, [EMAIL PROTECTED] wrote: This is being called from an audio play back proc which is being called about 100 times a second. I'm getting this error message in the log window a whole bunch of times. The audio proc should gives you a time stamp that you can use