12.1.6 Get_CPU_Time Procedure

The Get_CPU_Time procedure returns the current value of the CPU time counter in seconds. It is intended to be used internally to the Timer Class, but is made public in case it is needed elsewhere.

Note: on an old Sun compiler (Sun WorkShop 6 update 2 Fortran 95 6.2 2001/05/15), the CPU_TIME call returns the total time for the parent process, so interpret results carefully. Some runs led me to suspect that CPU_TIME returns Wall Clock Time on Suns - not sure about this.

Calling syntax:

Real = Get_CPU_Time ()

Output variable:

 Get_CPU_Time  The current value of the CPU time counter [seconds].

The Get_CPU_Time code listing contains additional documentation.

Michael L. Hall