Mail Archives: djgpp/1997/04/07/08:45:48
Denis Mignon wrote:
>
> Is there an equivalent in G77 for the clock() of GCC, or any other
> routine computing the time used by a program?
> How should it be used? Thanks
>
> Denis
> --
> ================================================
> Denis Mignon
> email : denis DOT mignon AT fina DOT be
> ================================================
Hi, Denis.
I had this problem too. The only thing that can help, write
a C stub for those C-finctions which you'd like to use in FORTRAN code.
Something like this:
#include <time.h>
int clock_()
{
return (int) clock();
}
Then you can call it from the FORTRAN routine as:
INTEGER CLOCK
C CLOCK returns number of clock ticks since the first call.
I = CLOCK()
Regards,
Alexey.
- Raw text -