Guardian Procedure Calls Reference Manual (G06.25+)

Guardian Procedure Calls (P)
Guardian Procedure Calls Reference Manual522629-013
12-267
PROCESSTIME Procedure
(Superseded by PROCESS_GETINFOLIST_
cpu,pin input
INT:value
is the processor (in bits <4:7> with <0:3> not used) and PIN (in bits <8:15>)
number of the process whose execution time is to be returned. If
cpu,pin is
omitted, the
cpu,pin of the current process (calling process) is used, even if
sysid is different than the current system.
sysid input
INT:value
is the system number.
sysid defaults to the current system.
Considerations
You cannot use PROCESSTIME for a high-PIN process except when omitting
cpu,pin. This is because a high-PIN cannot fit into cpu,pin.
Example
IF ( PROCESS^TIME := PROCESSTIME ( CPU^PIN , SYS^NUM )) >= 0F
THEN ... ! successful.
ELSE ... ! PROCESSTIME not available.