next up previous contents index
Next: Off-line initialization of Up: Extra features Previous: Receiving the working

Note on processor timing

JZ91 uses the KERNLIB routine TIMED (Z007) for measuring the time spent in each processor. TIMED is called every time the processor level changes and the value returned is added into the right Q(LQSV+5).

If the user also wants to use TIMED to time a section of his code inside (!) a processor, he can do this. But unless he follows the recomendation below, he will invalidate the timing figures for the particular processor. To keep things right, he should do this:

       CALL TIMED (T)
       Q(LQSV+5)=Q(LQSV+5) + T
          user code to be timed
       CALL TIMED (T)
       Q(LQSV+5)=Q(LQSV+5) + T

The first call marks the start time of the user code; the time spent in the processor till this moment is cumulated into the SV bank. The second call brings the time interval of the user code, it too is cumulated. Note that you cannot so measure an interval across a processor call.


Janne Saarela
Mon May 15 08:34:47 METDST 1995