In fact I wasn't sure about CLOCK_PROCESS_CPUTIME_ID if it is available on BSD, so for now I'm using defined(LINUX), but I would like to add detection on the configure to use the right code on LINUX/BSD/SOLARIS and also MAC OS X (use MACH specific functions) for this one and my previous one.
2013/5/19 Francois Tigeot <ftig...@wolfpond.org> > On Sun, May 19, 2013 at 11:25:36AM +0000, Arnaud Versini (via Code Review) > wrote: > > > > https://gerrit.libreoffice.org/3960 > > > > +#if defined(LINUX) > [...] > > + res = clock_gettime(CLOCK_PROCESS_CPUTIME_ID , NULL); > > Why is this hardcoded on LINUX ? > > At least FreeBSD also has CLOCK_PROCESS_CPUTIME_ID if I'm not mistaken. > > -- > Francois Tigeot > -- Arnaud Versini
_______________________________________________ LibreOffice mailing list LibreOffice@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice