• 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: Equivalent to gethrtime()
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Equivalent to gethrtime()


  • Subject: Re: Equivalent to gethrtime()
  • From: Kurt Revis <email@hidden>
  • Date: Wed, 28 Nov 2001 07:50:08 -0800

So, something similar to either the gethrtime() on Solaris or the
Pentium tick counter available in Mac OS X?

You could use AudioGetCurrentHostTime(). Look in the CoreAudio framework, HostTime.h. There are also functions for converting this value into nanoseconds.

Alternatively, you can go to Carbon, and use the UpTime() function.

There are undoubtedly other ways to do this, but perhaps one of these will work for you.

--
Kurt Revis
email@hidden


References: 
 >Re: Equivalent to gethrtime() (From: Malte Tancred <email@hidden>)

  • Prev by Date: ProjectBuilder and intermediate files
  • Next by Date: Re: Window not becoming key window when it should after makeKeyAndOrderFront:
  • Previous by thread: Re: Equivalent to gethrtime()
  • Next by thread: Re: Equivalent to gethrtime()
  • Index(es):
    • Date
    • Thread