This function enables an IMOD task to determine how much CPU time it has consumed.
{value|string|number} = CPUTIME({STCK|FULL[B]|SEC})
Parameters
Unsigned 64-bit binary value in IBM TOD clock format.
12-character value, in the format hh:mm:ss.tho.
Numeric value suitable for REXX computational use.
Returns the elapsed CPU time as an unsigned 64-bit number.
Returns the elapsed CPU time as a printable string. FULL is the default. Specifying FULLB removes all leading zeros and associated separators. In each case, 12 characters are returned in the format hh:mm:ss.tho.
Returns the elapsed CPU time, in seconds, as a REXX numeric value. The value is accurate to three decimal places.
ARG 1 MISSING OR INVALID
The CPUTIME value includes REXX interpretation time and time that ADDRESS environments use that execute in the same address space as the IMOD. Time that is accrued in other address spaces is not considered.
Example
/* Display the elapsed CPU time for an IMOD */ time = cputime('fullb') time = strip(time,'l') /* Remove leading blank characters */ say 'CPU Time for' imod_id 'is' time
Copyright © 2014 CA Technologies.
All rights reserved.
|
|