Re: high accuracy timing options?
site_archiver@lists.apple.com Delivered-To: darwin-dev@lists.apple.com 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. <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> HTH, -Steve _______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-dev mailing list (Darwin-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-dev/site_archiver%40lists.appl... At 10:31 PM -0700 3/25/08, Aaron Turner wrote: There are routines for this in Multiprocessing Services -- if you're trying to measure time: There are routines at the Mach level as well, but I don't know them off the tip of my head. This email sent to site_archiver@lists.apple.com
participants (1)
-
Steve Sisak