secondr

Date:

02-06-2023

NAME

SECONDR - Returns elapsed wall-clock time in seconds

SYNOPSIS

REAL (KIND=8) SECONDR
time=SECONDR( )

DESCRIPTION

SECONDR can be called several times during the execution of a program to determine the amount of elapsed wall-clock time.

time is the real-time clock values in floating-point seconds. If the value of the real-time clock exceeds 52 bits, some accuracy may be lost during the conversion to float. The argument must be of type real with KIND=8.

The real-time clocks on processing elements are not synchronized with each other. Therefore, a SECONDR() value should not be compared to a previous SECONDR() taken on a different processing element.

EXAMPLES

This example calculates the elapsed wall-clock time from the first call to SECONDR until the second call to SECONDR.

REAL (KIND=8) SECONDR
REAL (KIND=8) BEFORE, AFTER, WALTIM

BEFORE = SECONDR( )
CALL DOWORK ( )
AFTER = SECONDR( )
WALTIM = AFTER - BEFORE

SEE ALSO

RTC(3I), SECOND(3F), TIMEF(3F)