Date: prev next · Thread: first prev next last
2013 Archives by date, by thread · List index


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 <ftigeot@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

Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.