| 1 |
/* ./util_f77/second.f -- translated by f2c (version 20030320). |
| 2 |
You must link the resulting object file with the libraries: |
| 3 |
-lf2c -lm (in that order) |
| 4 |
*/ |
| 5 |
|
| 6 |
#include <punc/vf2c.h> |
| 7 |
|
| 8 |
/* Subroutine */ int second_(real *t) |
| 9 |
{ |
| 10 |
static real t1; |
| 11 |
extern doublereal etime_(real *); |
| 12 |
static real tarray[2]; |
| 13 |
|
| 14 |
|
| 15 |
|
| 16 |
/* -- LAPACK auxiliary routine (preliminary version) -- */ |
| 17 |
/* Univ. of Tennessee, Univ. of California Berkeley, NAG Ltd., */ |
| 18 |
/* Courant Institute, Argonne National Lab, and Rice University */ |
| 19 |
/* July 26, 1991 */ |
| 20 |
|
| 21 |
/* Purpose */ |
| 22 |
/* ======= */ |
| 23 |
|
| 24 |
/* SECOND returns the user time for a process in seconds. */ |
| 25 |
/* This version gets the time from the system function ETIME. */ |
| 26 |
|
| 27 |
/* .. Local Scalars .. */ |
| 28 |
/* .. */ |
| 29 |
/* .. Local Arrays .. */ |
| 30 |
/* .. */ |
| 31 |
/* .. External Functions .. */ |
| 32 |
/* .. */ |
| 33 |
/* .. Executable Statements .. */ |
| 34 |
|
| 35 |
t1 = etime_(tarray); |
| 36 |
*t = tarray[0]; |
| 37 |
return 0; |
| 38 |
|
| 39 |
/* End of SECOND */ |
| 40 |
|
| 41 |
} /* second_ */ |
| 42 |
|