home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / os / vms / 21860 < prev    next >
Encoding:
Internet Message Format  |  1993-01-24  |  2.2 KB

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