Re: nanotime()
Re: nanotime()
- Subject: Re: nanotime()
- From: Jean-Daniel Dupas <email@hidden>
- Date: Fri, 4 Jan 2008 16:15:57 +0100
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
References: | |
| >nanotime() (From: Roland Silver <email@hidden>) |