FROM : Filipe Varela
DATE : Fri Jan 04 16:30:11 2008
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_removed>)
>
> 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:
> http://lists.apple.com/mailman/options/cocoa-dev/<email_removed>
>
> This email sent to <email_removed>
DATE : Fri Jan 04 16:30:11 2008
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_removed>)
>
> 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:
> http://lists.apple.com/mailman/options/cocoa-dev/<email_removed>
>
> This email sent to <email_removed>
| 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

