Timing functions on Mac OS X

And other Mach platforms, presumably.  Derived from [1].

[1] https://developer.apple.com/library/mac/qa/qa1398/_index.html