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
On Sun, May 19, 2013 at 11:25:36AM +, 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_CPUT