<div dir="ltr">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.<br>

<div class="gmail_extra"><br><br><div class="gmail_quote">2013/5/19 Francois Tigeot <span dir="ltr"><<a href="mailto:ftigeot@wolfpond.org" target="_blank">ftigeot@wolfpond.org</a>></span><br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">

On Sun, May 19, 2013 at 11:25:36AM +0000, Arnaud Versini (via Code Review) wrote:<br>
><br>
>     <a href="https://gerrit.libreoffice.org/3960" target="_blank">https://gerrit.libreoffice.org/3960</a><br>
><br>
> +#if defined(LINUX)<br>
[...]<br>
<div class="im">> +    res = clock_gettime(CLOCK_PROCESS_CPUTIME_ID , NULL);<br>
<br>
</div>Why is this hardcoded on LINUX ?<br>
<br>
At least FreeBSD also has CLOCK_PROCESS_CPUTIME_ID if I'm not mistaken.<br>
<span class=""><font color="#888888"><br>
--<br>
Francois Tigeot<br>
</font></span></blockquote></div><br><br clear="all"><br>-- <br>Arnaud Versini</div></div>