> Dear all:
> Could anyone tell me how to read or get the CPU time used of a
> Fortran program?
> Thanks in advance.
Yes,
use procedure cpu_time, as follows.
real :: time1, time2
call cpu_time(time1)
! Do some processing here.
call cpu_time(time2)
print *, "Time used:", time2-time1, " seconds."
> Zhou Yongcheng
>
> ======================================
> Zhou Yongcheng [log in to unmask]
> Department of Computational Science
> National University of Singapore
> Singapore, 117543
> ======================================
>
|