Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!seismo!rutgers!ames!ucbcad!ucbvax!NDSUVM1.BITNET!NU043109 From: NU043109@NDSUVM1.BITNET (K. Sankara Rao) Newsgroups: mod.computers.vax Subject: cpu timing on VAX/VMS Message-ID: <8701100956.AA15892@ucbvax.Berkeley.EDU> Date: Fri, 9-Jan-87 21:43:00 EST Article-I.D.: ucbvax.8701100956.AA15892 Posted: Fri Jan 9 21:43:00 1987 Date-Received: Sat, 10-Jan-87 07:36:55 EST Sender: daemon@ucbvax.BERKELEY.EDU Organization: The ARPA Internet Lines: 16 Approved: info-vax@sri-kl.arpa 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