Re: Calculating a program's run time



Use the etime command. Call it once, in the beginning, to start the
timer. Then call it again whenever you want to read the time. You can
output it to the screen, save it to file, etc.

REAL t(2), e

e = etime(t) ! start timer for elapsed execution time

{steps to be timed}

e = etime(t) ! get elapsed time
write(*,*) 'Elapsed time (min):', e/60 ! convert to minutes

A web search should bring up the syntax and usage detail. It worked for
me in measuring the wall-clock time for a dedicated server with
multiple processors running a simulation. Best of luck!

-Munir

.