[fpc-devel] NowUTC in the RTL

Felipe Monteiro de Carvalho felipemonteiro.carvalho at gmail.com
Fri Dec 9 15:13:43 CET 2011

On Fri, Dec 9, 2011 at 3:02 PM, Michael Van Canneyt
<michael at 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 =(



       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
       indicate      that      CLOCK_MONOTONIC,      CLOCK_PROCESS_CPUTIME_ID,
       CLOCK_THREAD_CPUTIME_ID are available.  (See also sysconf(3).)

But it exists in FreeBSD:


Felipe Monteiro de Carvalho

More information about the fpc-devel mailing list