6
From elgin@claudia.spectral.com (Jim Elgin)
9
/* supply "etime" fortran routine
12
etime - return elapsed execution time
15
REAL function etime (tarray)
19
This routine returns elapsed runtime in seconds for the calling
22
The argument array returns user time in the first element and system
23
time in the second element. The function value is the sum of user and
26
The resolution of all timing is 1/CLK_TCK seconds, where CLK_TCK is
30
#include <sys/times.h>
36
float t1, t2, den, tot;
41
den = sysconf(_SC_CLK_TCK);
44
tot = *tarray + *(tarray+1);
55
utime[i]= *(ctime(&t)+i);