Re: Calculating a program's run time
- From: "Munir" <cloudgiant@xxxxxxxxx>
- Date: 23 Oct 2005 00:49:46 -0700
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
.
- Follow-Ups:
- Re: Calculating a program's run time
- From: Richard Maine
- Re: Calculating a program's run time
- From: Tim Prince
- Re: Calculating a program's run time
- From: Random Programmer
- Re: Calculating a program's run time
- Prev by Date: Fitting routine
- Next by Date: Re: Calculating a program's run time
- Previous by thread: Re: Calculating a program's run time
- Next by thread: Re: Calculating a program's run time
- Index(es):