comp.lang.ada
 help / color / mirror / Atom feed
From: jduarte@liege.ICS.UCI.EDU (J o s e D u a r t e)
Subject: Re: PID and CPU-time on UNIX
Date: 17 Apr 91 23:19:51 GMT	[thread overview]
Message-ID: <9104171617.aa00788@PARIS.ICS.UCI.EDU> (raw)
In-Reply-To: <2114@se6.cs.nps.navy.mil>




> 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.

  reply	other threads:[~1991-04-17 23:19 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1991-04-17 18:27 PID and CPU-time on UNIX westman stefan
1991-04-17 23:19 ` J o s e D u a r t e [this message]
  -- strict thread matches above, loose matches on Subject: below --
1991-04-17 23:46 J o s e D u a r t e
replies disabled

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