Next: Merge Intrinsic, Previous: MClock Intrinsic, Up: Table of Intrinsic Functions
MClock8()
MClock8: INTEGER(KIND=2)
function.
Intrinsic groups: unix
.
Description:
Returns the number of clock ticks since the start of the process.
Supported on systems with clock(3)
(q.v.).
Warning: this intrinsic does not increase the range
of the timing values over that returned by clock(3)
.
On a system with a 32-bit clock(3)
,
MCLOCK8
will return a 32-bit value,
even though converted to an `INTEGER(KIND=2)' value.
That means overflows of the 32-bit value can still occur.
Therefore, the values returned by this intrinsic
might be, or become, negative,
or numerically less than previous values,
during a single run of the compiled program.
No Fortran implementations other than GNU Fortran are known to support this intrinsic at the time of this writing. See MClock Intrinsic, for information on a similar intrinsic that might be portable to more Fortran compilers, though to fewer GNU Fortran implementations.
If the system does not support clock(3)
,
-1 is returned.