On Fri, Dec 9, 2011 at 3:02 PM, Michael Van Canneyt <mich...@freepascal.org> wrote: > The main problem is that I don't know yet if it is Linux-specific or Posix. > That will determine which unit it will be added to. Maybe Marco knows more ?
Wow, timing in UNIX is such a mess, it seams that clock_gettime doesn't exist in Mac OS X =( http://juliusdavies.ca/posix_clocks/clock_realtime_macosx_faq.html http://www.tin.org/bin/man.cgi?section=3&topic=clock_gettime AVAILABILITY On POSIX systems on which these functions are available, the symbol _POSIX_TIMERS is defined in <unistd.h> to a value greater than 0. The symbols _POSIX_MONOTONIC_CLOCK, _POSIX_CPUTIME, _POSIX_THREAD_CPUTIME indicate that CLOCK_MONOTONIC, CLOCK_PROCESS_CPUTIME_ID, CLOCK_THREAD_CPUTIME_ID are available. (See also sysconf(3).) But it exists in FreeBSD: http://www.unix.com/man-page/FreeBSD/2/CLOCK_GETTIME/ -- Felipe Monteiro de Carvalho _______________________________________________ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel