The discussion of the ECT parameter of TIMEUSED on the thread "STCK vs TIMUSED" got me to wondering. I am currently using TCBTTIME in a product rather than TIMEUSED. The advantages of TCBTTIME as I see it are (1) has to be very low overhead and (2) I can do it directly in C without linking to assembler:
psa* psaPtr = NULL; tcb* tcbPtr = (tcb *)psaPtr->psatold; long long ttimer = *(long long *)tcbPtr->tcbttime; What are the disadvantages? I would guess that TCBTTIME is only updated "now and then" -- is that right? My product is not a profiler -- it's a long-running STC and the CPU time is for my general information. How out of date (out of time?) is TCBTTIME? The last the task was dispatched? Charles ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@bama.ua.edu with the message: GET IBM-MAIN INFO Search the archives at http://bama.ua.edu/archives/ibm-main.html