For Programmers: Free Programming Magazines  


Home > Archive > Fortran > September 2004 > Re: computing time of execution









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Re: computing time of execution
David Ham

2004-09-28, 9:04 am

On 28 Sep 2004 03:35:44 -0700
nicolas.lardjane@simulog.fr (Nicolas Lardjane) wrote:

> "rudi" <rudi80@katamailNO.it> wrote in message
> news:<g8d5d.3841$O9.304490@news4.tin.it>...
>
> The simplest way is to use the time command or just link with a C
> function to get the CPU time if your f95 compilo does not have it
> fully implemented.
> NL


Um, an f95 compiler by definition has functions for this. If it doesn't,
it's not an F95 compiler. time is an effective method if you are
interested in the execution time of the whole program but often this is
not the case (you want to compare execution times for a particular part
of the algorithm).

Linking to C creates portability headaches. Note that the OP wanted to
compare performance accross different platforms to portability is an
issue.

David
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com