Returns elapsed CPU time in seconds.
Fortran:
val = second()
val = dsecnd()
C:
val = second();
val = dsecnd();
The FORTRAN 77 interfaces for this routine are specified in mkl_lapack.fi include file and the C interfaces are specified in the mkl_lapack.h include file.
Name |
Type |
Description |
---|---|---|
val |
FORTRAN: REAL for second DOUBLE PRECISION for dsecnd C: float for second double for dsecnd |
Elapsed CPU time in seconds |
The second/dsecnd functions return the elapsed CPU time in seconds. These versions get the time from the elapsed CPU clocks divided by CPU frequency. The difference is that dsecnd returns the result with double precision.
The functions should be applied in pairs: the first time, before a routine to be measured, and the second time - after the measurement. The difference between the returned values is the time spent in the routine. The usage of second is discouraged for measuring short time intervals because the single precision format is not capable of holding sufficient timer precision.
Copyright © 1994 - 2010, Intel Corporation. All rights reserved.