[phobos] clock_gettime changes
Michel Fortin
michel.fortin at michelf.com
Sat Nov 20 19:55:22 PST 2010
Le 2010-11-20 à 4:43, Jonathan M Davis a écrit :
> librt is required for clock_gettime(), so that is the correct fix. Apparently,
> MacOS doesn't have clock_gettime(), so it will continue to use gettimeofday()
> and won't need librt (it probably isn't on the system anyway, or it would have
> clock_gettime()). I have no idea about FreeBSD.
I think you can use mach_absolute_time() for monotonic time on OS X. See this technote:
<http://developer.apple.com/library/mac/qa/qa2004/qa1398.html>
--
Michel Fortin
michel.fortin at michelf.com
http://michelf.com/
More information about the phobos
mailing list