Previous topic |
Next topic |
Contents |
Contact z/OS |
Library |
PDF
CPUTIMER — Provide current CPU timer value z/OS MVS Programming: Assembler Services Reference ABE-HSP SA23-1369-00 |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
DescriptionThe CPUTIMER macro provides the current CPU timer value for this processor. This value consists of the time remaining in a time interval established by the STIMER macro. If there is no outstanding time interval, the value returned by the macro is meaningless. EnvironmentThe requirements for the caller are:
Programming requirementsNone. RestrictionsNone. Input register informationThe CPUTIMER macro is sensitive to the SYSSTATE macro with the
OSREL parameter
Output register informationWhen control returns to the caller, the GPRs contain:
Some callers depend on register contents remaining the same before and after issuing a service. If the system changes the contents of registers on which the caller depends, the caller must save them before issuing the service, and restore them after the system returns control. Performance implicationsNone. SyntaxThe CPUTIMER macro is written as follows:
ParametersThe parameters are explained as follows:
ABEND codesNone. Return codesWhen the system returns control to your program, GPR 15 contains a return code.
These return codes are passed to the error routine if it receives control. Example 1Place the value of the CPU timer in microseconds in location TIMELEFT.
Example 2Store the value of the CPU timer in time units in the location
addressed by register 1.
Example 3Store the value of the CPU timer in timer units in location TIMELEFT.
If an error occurs, transfer control to the error routine labeled
ERREXIT.
Example 4Place the value of the CPU timer in microseconds in the location
addressed by register 1. If an error occurs, transfer control to
the address in register 2.
|
Copyright IBM Corporation 1990, 2014
|