Re: high accuracy timing options?
Re: high accuracy timing options?
- Subject: Re: high accuracy timing options?
- From: Steve Sisak <email@hidden>
- Date: Wed, 26 Mar 2008 08:39:33 -0400
At 10:31 PM -0700 3/25/08, Aaron Turner wrote:
I'm trying to implement a high speed (roughly 1usec accuracy) timer
for OS X in C. My process runs as root and it's perfectly acceptable
that I eat a large amount of CPU time.
There are routines for this in Multiprocessing Services -- if you're
trying to measure time:
<http://developer.apple.com/documentation/Carbon/Conceptual/Multitasking_MultiproServ/appendixb/chapter_5_section_1.html>
<http://developer.apple.com/documentation/Hardware/DeviceManagers/pci_srvcs/pci_cards_drivers/PCI_BOOK.19a.html>
If you want to block until a specific time:
<http://developer.apple.com/documentation/Carbon/Reference/Multiprocessing_Services/Reference/reference.html#//apple_ref/c/func/MPDelayUntil>
There are routines at the Mach level as well, but I don't know them
off the tip of my head.
HTH,
-Steve
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden