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 23:34:00 PST Path: nntp.gmd.de!stern.fokus.gmd.de!ceres.fokus.gmd.de!zib-berlin.de!news.mathworks.com!news.alpha.net!uwm.edu!math.ohio-state.edu!jussieu.fr!univ-lyon1.fr!swidir.switch.ch!scsing.switch.ch!pss100.psi.ch!cvax.psi.ch!reid From: reid@cvax.psi.ch (Dr Ivan D Reid, uSR Facility, PSI) Newsgroups: comp.sys.dec Subject: Re: How to get CPU time under OpenVMS Fortran ?? Date: 17 Feb 1995 09:34 +0200 Organization: Paul Scherrer Institute, Switzerland Distribution: world Message-ID: <17FEB199509341870@cvax.psi.ch> References: <3i07lf$sv6@cerberus-138.wustl.edu> NNTP-Posting-Host: psw086.psi.ch Summary: How to get CPU time under OpenVMS Fortran ?? Keywords: How to get CPU time under OpenVMS Fortran ?? News-Software: VAX/VMS VNEWS 1.41 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.... This works for me: include '($syidef)' include '($jpidef)' .. call lib$getjpi(jpi$_cputim,,,j) (j is integer*4 by default; lib$getjpi returns elapsed cpu time in 100ths of a second in j; the include of '($syidef)' is probably for other bits in my code but I put it here just in case). There used to be VMS help available on WWW, but last time I saw a reference to it it said "this doesn't work any more"; anyone know any pointers to such a facility? Ivan Reid, Paul Scherrer Institute, CH. reid@cvax.psi.ch