SCALAPACK 2.2.2
LAPACK: Linear Algebra PACKage
Loading...
Searching...
No Matches

◆ slinquire()

double precision function slinquire ( character*1  timetype,
integer  i 
)

Definition at line 188 of file sltimer.f.

189*
190* -- ScaLAPACK tools routine (version 1.7) --
191* University of Tennessee, Knoxville, Oak Ridge National Laboratory,
192* and University of California, Berkeley.
193* May 1, 1997
194*
195* .. Scalar Arguments ..
196 CHARACTER*1 TIMETYPE
197 INTEGER I
198* ..
199*
200* Purpose
201* =======
202*
203* SLINQUIRE returns wall or cpu time that has accumulated in timer I.
204*
205* Arguments
206* =========
207*
208* TIMETYPE (global input) CHARACTER
209* Controls what time will be returned:
210* = 'W': wall clock time is returned,
211* = 'C': CPU time is returned (default).
212*
213* I (global input) INTEGER
214* The timer to return.
215*
216* =====================================================================
217*
218* .. Parameters ..
219 INTEGER NTIMER
220 parameter( ntimer = 64 )
221 DOUBLE PRECISION ERRFLAG
222 parameter( errflag = -1.0d+0 )
223* ..
224* .. Local Scalars ..
225 DOUBLE PRECISION TIME
226* ..
227* .. External Functions ..
228 LOGICAL LSAME
229 DOUBLE PRECISION DCPUTIME00, DWALLTIME00
230 EXTERNAL dcputime00, dwalltime00, lsame
231* ..
232* .. Common Blocks ..
233 LOGICAL DISABLED
234 DOUBLE PRECISION CPUSEC( NTIMER ), CPUSTART( NTIMER ),
235 $ WALLSEC( NTIMER ), WALLSTART( NTIMER )
236 COMMON /sltimer00/ cpusec, wallsec, cpustart, wallstart, disabled
237* ..
238* .. Executable Statements ..
239*
240 IF( lsame( timetype, 'W' ) ) THEN
241*
242* If walltime not available on this machine, return -1 flag
243*
244 IF( dwalltime00().EQ.errflag ) THEN
245 time = errflag
246 ELSE
247 time = wallsec( i )
248 END IF
249 ELSE
250 IF( dcputime00().EQ.errflag ) THEN
251 time = errflag
252 ELSE
253 time = cpusec( i )
254 END IF
255 END IF
256*
257 slinquire = time
258*
259 RETURN
260*
261* End of SLINQUIRE
262*
double precision function slinquire(timetype, i)
Definition sltimer.f:189
logical function lsame(ca, cb)
Definition tools.f:1724
Here is the call graph for this function:
Here is the caller graph for this function: