FROM : Jean-Daniel Dupas
DATE : Fri Jan 04 16:15:57 2008
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).
DATE : Fri Jan 04 16:15:57 2008
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).
| Related mails | Author | Date |
|---|---|---|
| Roland Silver | Jan 4, 16:02 | |
| Jean-Daniel Dupas | Jan 4, 16:15 | |
| Filipe Varela | Jan 4, 16:30 |






Cocoa mail archive

