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
Hi,
I have submitted a patch for review:
https://gerrit.libreoffice.org/3960
To pull it, you can do:
git pull ssh://gerrit.libreoffice.org:29418/core refs/changes/60/3960/1
Multi threaded version of osl_getGlobalTime on Unix
Change-Id: Ibb9d23780600437f607d866ff3d396b96879245d
---
M s