• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: nanotime()
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >nanotime() (From: Roland Silver <email@hidden>)
 >Re: nanotime() (From: Jean-Daniel Dupas <email@hidden>)

  • Prev by Date: Re: nanotime()
  • Next by Date: Re: Trapping user shutdown/logout/restart in Cocoa/Foundation tool
  • Previous by thread: Re: nanotime()
  • Next by thread: Bundle Loading/Unloading at runtime
  • Index(es):
    • Date
    • Thread