[Patch, libfortran] Use high resolution clock if available, timing cleanup

Janne Blomqvist blomqvist.janne@gmail.com
Tue Feb 1 08:29:00 GMT 2011


On Tue, Feb 1, 2011 at 04:38, Hans-Peter Nilsson <hp@bitrange.com> wrote:
> On Mon, 31 Jan 2011, Janne Blomqvist wrote:
>> the attached patch
>>
>> 1) Does some cleanup for CPU timing functions.
>>
>> 2) Uses clock_gettime() if available, and if so in particular:
>>       2a) enables up to nanosecond resolution for system_clock_8.
>>       2b) SYSTEM_CLOCK uses the monotonic clock, if available, which
>> is a better choice for a wallclock timing function.
>
> 3) Uses errno without including errno.h (or the equivalent
> action), breaking build on some targets.

Thanks for the report. Committed r169467 as obvious.

-- 
Janne Blomqvist



More information about the Fortran mailing list