From: fairfield@sldb5.slac.stanford.edu
Subject: Re: How to get CPU time under OpenVMS Fortran ??
Date: Thu, 16 Feb 1995 23:51:39 GMT [thread overview]
Message-ID: <1995Feb16.155139.1@sldb5.slac.stanford.edu> (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....
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...
next prev parent reply other threads:[~1995-02-16 23:51 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 [this message]
1995-02-17 7:34 ` Dr Ivan D Reid, uSR Facility, PSI
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