tags:

views:

240

answers:

2

Apple has extremely comprehensive documentation, but I can't find any documentation for the function AbsoluteToNanoseconds? I was to find the difference between AbsoluteToNanoseconds and AbsoluteToDuration.

Note

I am beginning to think that the Apple Docs only cover Objective-C functions? Is this the case?

I found the following by using Apple-double-click:

Duration 32-bit millisecond timer for drivers AbsoluteTime 64-bit clock

+1  A: 

The function name is pretty descriptive - maybe they didn't think it was necessary?

clownbaby
+3  A: 
e.James
Thanks. Actually, the main reason I am interested in the docs is to find out how it differs from AbsoluteToDuration
Casebash
Is there any reason why I have to use SubAbsoluteFromAbsolute rather than plain subtraction?
Casebash
You bet! `SubAbsoluteFromAbsolute()` returns 0 instead of a negative number if the time has passed. http://lists.apple.com/archives/darwin-dev/2008/Mar/msg00130.html
e.James
This might be a good reference: http://www.meandmark.com/timingpart3.html
e.James
I have responded to your first comment via an update to my answer. I hope it makes sense.
e.James