Open GoogleCodeExporter opened 8 years ago
Mac OS doesn't have POSIX realtime extension implemented. So, there is no
clock_gettime() function. The workaround is to use gettimeofday() function
instead. However, it is more convenient to keep clock_gettime() function as it
returns time in nanoseconds format, which is used by other POSIX API calls.
TODO: add a separate file (e.g. clock_gettime.c) which implements
clock_gettime() function on top of gettimeofday(). Update makefiles to include
this source file in case, when there is no librt.
Original comment by Litvinov...@gmail.com
on 31 May 2011 at 2:19
Also, take a look at these links:
http://lists.apple.com/archives/Darwin-dev/2008/Jan/msg00073.html
http://lists.apple.com/archives/unix-porting/2008/Oct/msg00001.html
Original comment by Litvinov...@gmail.com
on 31 May 2011 at 2:43
Original issue reported on code.google.com by
Litvinov...@gmail.com
on 31 May 2011 at 2:13