NU043109@NDSUVM1.BITNET (K. Sankara Rao) (01/10/87)
I want to write a program for measuring cpu time taken by each subroutine in a program. The program is pretty large (about 300 subroutines) and a number of subroutines take very little cpu time and are called repeatedly (some tens of thousand times).Is there a package which can be linked to the program package to be tested, which will do the job. I understand there is DEC package which tests the pc every few seconds (of real elapsed time), but th is would not be useful, since I want to measure the cpu time. Another question I have is : I see in the documentation that the cpu time is given in tens of millisecs. I there any undocumented instruction for obtaing the cpu time interval with a finer resolution? If there is no such instruction is there any piece of code available to do the same using the hardware timer (which seems to have a finer resolution)? Thanks in advance K. Sankara Rao BITNET: nu043109@ndsuvm1