Re: nanotime()
Re: nanotime()
- Subject: Re: nanotime()
- From: Filipe Varela <email@hidden>
- Date: Fri, 4 Jan 2008 15:30:11 +0000
perhaps what you want is nanosleep?
filipe
On 2008/01/04, at 15:15, Jean-Daniel Dupas wrote:
Le 4 janv. 08 à 16:02, Roland Silver a écrit :
Is the GNU C function
void nanotime(struct timespec *ts);
available in some Cocoa framework?
It's defined in <time.h>, but the Scode (3) builder barfs when I
try to call it:
I did not find any nanotime function in <time.h>
I know only one nanotime functions on Mac OS X, the one declared in
Kernel Headers (Kernel.framework/Headers/sys/time.h) and it can be
call only from the kernel.
If you need an accurate time function (in user space), have a look
at mach_absolute_time() (http://developer.apple.com/qa/qa2004/qa1398.html
).
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden