Usenet comp.sys.dec (1990-2013)
 help / color / mirror / Atom feed
From: reid@cvax.psi.ch (Dr Ivan D Reid, uSR Facility, PSI)
Subject: Re: How to get CPU time under OpenVMS Fortran ??
Date: 17 Feb 1995 09:34 +0200	[thread overview]
Message-ID: <17FEB199509341870@cvax.psi.ch> (raw)
In-Reply-To: 3i07lf$sv6@cerberus-138.wustl.edu

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


  parent reply	other threads:[~1995-02-17  7:34 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1995-02-16 19:05 How to get CPU time under OpenVMS Fortran ?? Jay Ponder
1995-02-16 23:51 ` fairfield
1995-02-17  7:34 ` Dr Ivan D Reid, uSR Facility, PSI [this message]
1995-02-18  4:30 ` Mike Kier
1995-02-18 17:58 ` Martin Egger
1995-02-22  0:23 ` Larry Kilgallen, LJK Software
1995-02-27 17:14 ` Info on DEC PC - 425 ST Laurence Dumais
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox