From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1164f8,2ddd659c8ae44fe3 X-Google-Attributes: gid1164f8,public X-Google-ArrivalTime: 1995-02-16 15:51:39 PST Newsgroups: comp.sys.dec Path: nntp.gmd.de!newsserver.jvnc.net!howland.reston.ans.net!news.moneng.mei.com!uwm.edu!fnnews.fnal.gov!unixhub!sldb5.slac.stanford.edu!fairfield From: fairfield@sldb5.slac.stanford.edu Subject: Re: How to get CPU time under OpenVMS Fortran ?? Message-ID: <1995Feb16.155139.1@sldb5.slac.stanford.edu> Sender: news@unixhub.SLAC.Stanford.EDU Organization: Stanford Linear Accelerator Center References: <3i07lf$sv6@cerberus-138.wustl.edu> Date: Thu, 16 Feb 1995 23:51:39 GMT In article <3i07lf$sv6@cerberus-138.wustl.edu>, ponder@dasher.wustl.edu (Jay Ponder) writes: > > I'm trying to benchmark a Fortran program on the network available > Alpha-based OpenVMS system (axpvms.pa.dec.com), but I need to know > the OpenVMS way of getting the elapsed CPU time for a process from > Fortran. The OpenVMS Fortran does not support "etime" as does the > OSF/1 version. I used to have a small hunk of VAX/VMS Fortran code > that used a call to SYS$GETJPI to get the elapsed time. It worked > seven years ago, but seems to fail now. Since I don't have access > to the required OpenVMS docs, could some kind sole help me out.... It's pretty easy to do with the Run-time Library routine LIB$STAT_TIMER. Look at the online HELP under: $ HELP RTL LIB$ LIB$STAT_TIMER Read the description a bit carefully: you'll notice that the CPU time is returned in a 4-byte integer in units of 10 millisceconds. Also look at LIB$INIT_TIMER, which must be called first, and LIB$FREE_TIMER if you're doing more complicated things... -Ken -- Kenneth H. Fairfield | Internet: Fairfield@Slac.Stanford.Edu SLAC, P.O.Box 4349, MS 98 | DECnet: 45537::FAIRFIELD (45537=SLACVX) Stanford, CA 94309 | Voice: 415-926-2924 FAX: 415-926-4335 ------------------------------------------------------------------------- These opinions are mine, not SLAC's, Stanford's, nor the DOE's...