Examples of $ZGETJPI()

Example 1:

    GTM> WRITE $ZGETJPI("","IMAGECOUNT")
    12
    GTM>
    

This uses $ZGETJPI() to determine how many images the process has used, not including the current image, to arrive at the current point.

Example 2:

    GTM> SET t=$ZGETJPI("","cputim")
    GTM> DO BENCH WRITE $ZGETJPI("","cputim")-t
    1738
    GTM>
    

This uses $ZGETJPI() to measure the actual CPU time, measured in hundredths of a second, consumed by performing the BENCH sub-routine.