From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=0.7 required=5.0 tests=BAYES_00,INVALID_DATE, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!bcm!dimacs.rutgers.edu!mips!zaphod.mps.ohio-state.edu!usc!orion.oac.uci.edu!ucivax!gateway From: jduarte@liege.ICS.UCI.EDU (J o s e D u a r t e) Newsgroups: comp.lang.ada Subject: Re: PID and CPU-time on UNIX Message-ID: <9104171617.aa00788@PARIS.ICS.UCI.EDU> Date: 17 Apr 91 23:19:51 GMT Reply-To: Jose Aleman Duarte X-Newsgroups: comp.lang.ada X-Original-Path: ucivax!jarthur!elroy.jpl.nasa.gov!swrinde!mips!pacbell.com!lll-winken!se6!stefan X-References: <2114@se6.cs.nps.navy.mil> In-Reply-To: <2114@se6.cs.nps.navy.mil> X-Organization: UC Irvine Department of ICS List-Id: > How do I get access to the Process ID and elapsed CPU time on the current > process my ADA program is running? > I am running Verdix ADA on an UNIX system. I just took a look at our Verdix Ada library & I found that it contains several "pragmas" which allow your application to call C/UNIX library routines. If you look in the Ada "standard" library directory, you'll find that the file "unix.a" contains the function that you need to get the process id: > function getpid return integer; If there's a C routine that returns the elapsed CPU time, then there's bound to be an Ada interface to it in this file. I'm also using the Verdix Ada compiler in a UNIX environment (Sun4 SunOS). Jose' D.