79 SUBROUTINE cputimer(RETURN_TIME, TIME_TYPE, ERR, CERROR) BIND(C,NAME="CPUTimer")
81 REAL(C_DOUBLE),
INTENT(OUT) :: RETURN_TIME
82 INTEGER(C_INT),
INTENT(IN) :: TIME_TYPE
83 INTEGER(C_INT),
INTENT(OUT) :: ERR
84 CHARACTER(C_CHAR),
INTENT(OUT) :: CERROR(*)
85 END SUBROUTINE cputimer
98 SUBROUTINE cpu_timer(TIME_TYPE,TIME,ERR,ERROR,*)
101 INTEGER(INTG),
INTENT(IN) :: TIME_TYPE
102 REAL(SP),
INTENT(OUT) :: TIME(*)
103 INTEGER(INTG),
INTENT(OUT) :: ERR
106 REAL(DP) :: RETURN_TIME
107 CHARACTER(KIND=C_CHAR,LEN=MAXSTRLEN) :: CERROR
109 enters(
"CPU_TIMER",err, error,*999)
111 CALL cputimer(return_time,time_type,err,cerror)
112 time(1)=
REAL(return_time,sp)
113 IF(err/=0)
CALL flagerror(cerror,err,error,*999)
117 999 errorsexits(
"CPU_TIMER",err,error)
subroutine, public enters(NAME, ERR, ERROR,)
Records the entry into the named procedure and initialises the error code.
This module contains routines for timing the program.
This module provides an iso_varying_string module, conformant to the API specified in ISO/IEC 1539-2:...
This module contains all program wide constants.
integer(intg), parameter, public user_cpu
User CPU time type.
subroutine, public exits(NAME)
Records the exit out of the named procedure.
This module contains all the low-level base routines e.g., all debug, control, and low-level communic...
integer(intg), parameter, public system_cpu
System CPU time type.
subroutine, public cpu_timer(TIME_TYPE, TIME, ERR, ERROR,)
CPU_TIMER returns the CPU time in TIME(1). TIME_TYPE indicates the type of time required.
integer(intg), parameter, public total_cpu
Total CPU (i.e. User + System) time type.
Flags an error condition.