home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!paladin.american.edu!darwin.sura.net!sgiblab!adagio.panasonic.com!nntp-server.caltech.edu!SOL1.GPS.CALTECH.EDU!CARL
- From: carl@SOL1.GPS.CALTECH.EDU (Carl J Lydick)
- Newsgroups: comp.os.vms
- Subject: Re: CPU Time measurement on VMS.
- Date: 24 Jan 1993 10:44:03 GMT
- Organization: HST Wide Field/Planetary Camera
- Lines: 29
- Distribution: world
- Message-ID: <1jtrtjINN1pd@gap.caltech.edu>
- References: <01GTTXFQMDQQ0006QT@ACAD.DRAKE.EDU>
- Reply-To: carl@SOL1.GPS.CALTECH.EDU
- NNTP-Posting-Host: sol1.gps.caltech.edu
-
- In article <01GTTXFQMDQQ0006QT@ACAD.DRAKE.EDU>, SK0001@ACAD.DRAKE.EDU (Sal Kabalani) writes:
- >LS> I am a new user of OpenVMS running on Alpha. I have a problem and I am
- >LS> asking for your help. I have a FORTRAN program. I compile and link it and
- >LS> use run command to run it. My question is how I can measure the total CPU
- >LS> used by the execution of the program. In UNIX, I can easily use time to
- >LS> do it. But how do I do it in VMS? Can some one help me? Thanks a lot.
- >
- >The following is a fragment of code from a program I wrote a few months ago.
- >The fragment reports CPU Time, Buffered I/O, Direct I/O and Page Faults used
- >during program execution. The way the code works is simple: you collect this
- >information at the beginning of your program using sys$getjpi, then collect it
- >again at the end, then report the difference.
-
- Why not just:
- $ SHOW STATUS
- $ RUN program
- $ SHOW STATUS
- then subtract the former CPU time from the latter? That will, of course,
- include the time required for 1 "SHOW STATUS" command plus the time to activate
- the image in the "RUN program" command, and of course you'll have to subtract
- the times yourself (or write, e.g., a TPU procedure to do it for you).
- --------------------------------------------------------------------------------
- Carl J Lydick | INTERnet: CARL@SOL1.GPS.CALTECH.EDU | NSI/HEPnet: SOL1::CARL
-
- Disclaimer: Hey, I understand VAXen and VMS. That's what I get paid for. My
- understanding of astronomy is purely at the amateur level (or below). So
- unless what I'm saying is directly related to VAX/VMS, don't hold me or my
- organization responsible for it. If it IS related to VAX/VMS, you can try to
- hold me responsible for it, but my organization had nothing to do with it.
-