[Patch, fortran] PR 53456 More CPU timing fallbacks

2012-05-23 Thread Janne Blomqvist
Hi, the attached patch allows the use of clock_gettime() with CLOCK_PROCESS_CPUTIME_ID or CLOCK_THREAD_CPUTIME_ID if the target doesn't have getrusage() or times(). Such a target is apparently VxWorks 6.something, see http://www-ad.fnal.gov/controls/micro_p/manuals/vxworks_application_programmers_

Re: [Patch, fortran] PR 53456 More CPU timing fallbacks

2012-05-24 Thread Tobias Burnus
On 05/23/2012 10:43 PM, Janne Blomqvist wrote: the attached patch allows the use of clock_gettime() with CLOCK_PROCESS_CPUTIME_ID or CLOCK_THREAD_CPUTIME_ID if the target doesn't have getrusage() or times(). It's not completely clear to me whether CLOCK_PROCESS_CPUTIME_ID or even CLOCK_THREAD_

Re: [Patch, fortran] PR 53456 More CPU timing fallbacks

2012-05-24 Thread Janne Blomqvist
On Thu, May 24, 2012 at 5:37 PM, Tobias Burnus wrote: > On 05/23/2012 10:43 PM, Janne Blomqvist wrote: >> >> the attached patch allows the use of clock_gettime() with >> CLOCK_PROCESS_CPUTIME_ID or CLOCK_THREAD_CPUTIME_ID if the target >> doesn't have getrusage() or times(). > > > It's not complet