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
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
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()
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
[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
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