Process Time Information [ Getting System Information Programmer's Guide ] MPE/iX 5.0 Documentation
Getting System Information Programmer's Guide
Process Time Information
The following intrinsic enables you to obtain accumulated CPU time for a
process.
PROCTIME
The PROCTIME intrinsic applies specifically to process management. It
returns the amount of CPU time, in milliseconds, that a process has
accumulated. This is the basis upon which CPU time is charged; refer to
chapter 7 for more discussion about system administrative facilities.
The intrinsic call is as follows:
time:=PROCTIME;
The number of milliseconds that the process has been running is returned
in time. For more information about process accounting, refer to the
Process Management Programmer's Guide (32650-90023).
NOTE The PROCTIME intrinsic has a resolution of one millisecond.
Processes that occur in less than a millisecond are not detected by
PROCTIME. You can bypass this limitation by using a loop (for
example, repeating the process 100 times and then dividing the
value returned by PROCTIME by 100). Of course, this solution does
not work if the process cannot be repeated.
MPE/iX 5.0 Documentation