MemCom Reference Manual > MemCom (Old) Fortran77 API > Utility Functions > getcpu

Name

getcpu, getcpu8, getcpuu, getcpuu8, getcpus, getcpus8 — Inquire elapsed CPU time

Synopsis

subroutine getcpu(sec)
real*4 sec

subroutine getcpu8(sec)
real*8 sec

subroutine getcpuu(sec)
real*4 sec

subroutine getcpuu8(sec)
real*8 sec

subroutine getcpus(sec)
real*4 sec

subroutine getcpus8(sec)
real*8 sec

Description

getcpu returns the elapsed Central Processing Unit time in seconds since the start of the program. The time is composed of the user CPU time and the system CPU time (see also the man pages of the Unix times system call). The resolution of the clock is platform-dependent.

getcpuu returns the elapsed user Central Processing Unit time in seconds since the start of the program (see also the man pages of the Unix times system call).

getcpus returns the elapsed system Central Processing Unit time in seconds since the start of the program (see also the man pages of the Unix times system call).

Parameters

sec

Elapsed CPU seconds returned (output).