N/A
tim: time index (s) [R8]
USE TIMPAK
REAL(R8K) T1,T2
LOGICAL again
CALL TP_ETIME(t1)
again=yes
DO WHILE (again)
CALL TP_ETIME(t2)
AGAIN=(T2-T1.LT.ONE)
ENDDO
WRITE(*,*) '! ELAPSED TIME (s):',T2-T1
CALL TP_CPUTIM(t1)
again=yes
DO WHILE (again)
CALL TP_CPUTIM(t2)
AGAIN=(T2-T1.LT.ONE)
ENDDO
WRITE(*,*) '! ELAPSED TIME (s):',T2-T1
STOP
END
Program Output
! ELAPSED TIME (s): 1.00000000000728
! ELAPSED TIME (s): 1.00000000000000
CALL CPU_TIME(tim)
with
CALL TP_ETIME(tim)
in the TP_CPUTIM source code
(click here to view the TP_CPUTIM source code).
By default, the Fortran Library is distributed with the Fortran 90 standard
version of TP_CPUTIM enabled.
|
Website maintained by Rob Stewart
(trebor@purdue.edu). Last Updated: 03-Nov-1999 Disclaimer | ||