Next
/
Previous
/ Index
/ TCC Help System
/ Publications
/ Site map
/ NM Tech homepage
Measuring elapsed time in a Fortran program
|
|
You can find out how long your program has been running by
calling the built-in etime() function. This includes
only time spent running your program, regardless of what else is
running on the same processor. The time is reported in seconds,
in three parts:
- User time, time actually spent in your program;
- System time, time spent in the operating system on your
program's behalf; and
- Total time.
To measure elapsed time, declare a real*4 array with
two elements, and pass that array as an argument to
etime. The first element of the array will be set
to the user time, the second element will be set to the system
time, and the etime() function will return the total time.
Next: Example Fortran program to measure elapsed time
See also: Hints for Fortran programmers
Previous: Getting the current date and time in Fortran
Site map
Index:
Keyword index
to help pages
Help:
New Mexico Tech Computer Center: Help System
TCC Publications
Home:
About New Mexico Tech
John Shipman, john@nmt.edu
Last updated: 2001/02/01 00:14:23 UT
URL: http://www.nmt.edu/tcc/help/lang/fortran/elapsed.html