| 通常的办法是使用 CPU_TIME,你可以看看这个函数的帮助。 
 
 [Fortran] syntaxhighlighter_viewsource syntaxhighlighter_copycode   REAL time_begin, time_end  
  ...  
  CALL CPU_TIME ( time_begin )  !  
  
  do i=1,20,1
         print*,i
  End Do
  
  CALL CPU_TIME ( time_end )
  
  WRITE (*,*) 'Time of operation was ', time_end - time_begin, ' seconds' |