Re: Equivalent to gethrtime()
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