9.3.32 CPU_TIME (TIME)

Description:  Returns a processor-dependent approximation of the processor time in seconds. This is a Fortran 95 intrinsic procedure. 
Class:  Subroutine 
Arguments:  TIME must be scalar and of type real. It is an INTENT(OUT) argument.

If a meaningful time cannot be returned, a processor-dependent negative value is returned. 


Consider the following:

   REAL time_begin, time_end
   CALL CPU_TIME(time_begin)
   CALL CPU_TIME(time_end)
   PRINT (*,*) 'Time of operation was ', time_begin - time_end, ' seconds'

Previous Page Next Page Table of Contents