comp.lang.ada
 help / color / mirror / Atom feed
* PID and CPU-time on UNIX
@ 1991-04-17 18:27 westman stefan
  1991-04-17 23:19 ` J o s e D u a r t e
  0 siblings, 1 reply; 3+ messages in thread
From: westman stefan @ 1991-04-17 18:27 UTC (permalink / raw)


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.


Stefan Westman

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: PID and CPU-time on UNIX
  1991-04-17 18:27 westman stefan
@ 1991-04-17 23:19 ` J o s e D u a r t e
  0 siblings, 0 replies; 3+ messages in thread
From: J o s e D u a r t e @ 1991-04-17 23:19 UTC (permalink / raw)





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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: PID and CPU-time on UNIX
@ 1991-04-17 23:46 J o s e D u a r t e
  0 siblings, 0 replies; 3+ messages in thread
From: J o s e D u a r t e @ 1991-04-17 23:46 UTC (permalink / raw)




To: stefan@se6.cs.nps.navy.mil
Reply-To: Jose Aleman Duarte <jduarte@liege.ICS.UCI.EDU>
X-Organization: UC Irvine Department of ICS



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

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~1991-04-17 23:46 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1991-04-17 23:46 PID and CPU-time on UNIX J o s e D u a r t e
  -- strict thread matches above, loose matches on Subject: below --
1991-04-17 18:27 westman stefan
1991-04-17 23:19 ` J o s e D u a r t e

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