[Fortran] 纯文本查看 复制代码
program main
implicit none
real(kind=4)::t1_real, t2_real
integer i, j ,k
call CPU_TIME(t1_real)
do i = 1,10000
do j = 1,10000
k = j
end do
end do
call CPU_TIME(t2_real)
write(*,*) "count1",t1_real
write(*,*) "count2",t2_real
write(*,*) "时间",t2_real - t1_real
end program
[Fortran] 纯文本查看 复制代码
subroutine umat(stress,statev,ddsdde,sse,spd,scd,......)
...
...
...
...
real(kind=4) :: t1_real, t2_real
integer i,j,k
...
...
...
...
call CPU_TIME(t1_real)
do i = 1,10000
do j = 1,10000
k = j
end do
end do
call CPU_TIME(t2_real)
write(*,*) "count1",t1_real !默认输出在log文件里
write(*,*) "count2",t2_real !默认输出在log文件里
write(*,*) "时间",t2_real - t1_real !默认输出在log文件里
...
...
...
...
end