Article View: comp.os.vms
Article #15659Re: cpu time measurement on VMS
From: Tim Llewellyn
Date: Wed, 20 Jan 1993 19:51
Date: Wed, 20 Jan 1993 19:51
51 lines
2577 bytes
2577 bytes
In article <1993Jan20.164619.8700@eecs.nwu.edu>, shil@eecs.nwu.edu (Lei Shi) writes: |> |>Hi: |> |> I am a new user of OpenVMS running on Alpha. I have a problem and I |>am asking |>for your help. I have a FORTRAN program. I compile and link it and |>use run |>command to run it. My question is how I can measure the total CPU |>used by the |>execution of the program. In UNIX, I can easily use time to do it. |>But how do I do it in VMS? Can some one help me? Thanks a lot. |> |> Your Sincerely, |> |> Lei Shi The are various alternatives. The simplest way is to run your program as a batch job. When the batch job terminates the process acounting info (including elapsed and CPU time useage) is written to the end of the logfile. Try HELP SUBMIT if yu know nothing about batch qork on VMS. Otherwise, you can use the $ SHOW PROC /ACC for an interactive session but that cannot (as far as I am aware) be zeroed before execution of a program. Finally, if this is not sufficient you should investigate the run time library timer routine LIB$INIT_TIMER, LIB$SHOW_TIMER, LIB$STAT_TIMER ... (try $ HELP RTL LIB$ *TIMER*. |> |>------------------------------------------------------------------- |>Lei Shi | Department of Electrical Engineering and |>shil@eecs.nwu.edu | Computer Science |>i | Northwestern University |>Work: (708)467-2299 | Evanston, IL 60208-3118 |> |> |> |> |> -- Tim Llewellyn Zeus-UK VMS guru Soukous Addict ZEUS02::TJL,BRSPVA::TJL,TJL@ZEUS02.DESY.DE,TJL@SIVA.BRIS.AC.UK
Technical Details
Message-ID:
<C164Hn.223@dscomsa.desy.de>Path:
arc1-ca.pugleaf.net!sparky!uunet!paladin.american.edu!howland.reston.ans.net!spool.mu.edu!uwm.edu!srvr1.engin.umich.edu!batcomputer!ghost.dsi.unimi.it!insa-lyon.fr!univ-lyon1.fr!scsing.switch.ch!dxcern!dscomsa!zeus02.desy.de!tjlReferences:
<1993Jan20.164619.8700@eecs.nwu.edu>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f7344,f6668f1da5a0ac89 X-Google-Attributes: gidf7344,public X-Google-Thread: 10f8a1,f6668f1da5a0ac89 X-Google-Attributes: gid10f8a1,public X-Google-Thread: fc721,f6668f1da5a0ac89 X-Google-Attributes: gidfc721,public X-Google-ArrivalTime: 1993-01-20 10:37:22 PST Newsgroups: comp.os.vms,biz.dec.workstations,vmsnet.alpha Path: arc1-ca.pugleaf.net!sparky!uunet!paladin.american.edu!howland.reston.ans.net!spool.mu.edu!uwm.edu!srvr1.engin.umich.edu!batcomputer!ghost.dsi.unimi.it!insa-lyon.fr!univ-lyon1.fr!scsing.switch.ch!dxcern!dscomsa!zeus02.desy.de!tjl From: tjl@zeus02.desy.de (Tim Llewellyn) Subject: Re: cpu time measurement on VMS Message-ID: <C164Hn.223@dscomsa.desy.de> Sender: usenet@dscomsa.desy.de (usenet) Reply-To: tjl@zeus02.desy.de (Tim Llewellyn) Organization: Bristol University Particle Physics Group /ZEUS Online References: <1993Jan20.164619.8700@eecs.nwu.edu> Date: Wed, 20 Jan 1993 19:51:23 GMT Lines: 51