Would getrusage() help ?

On Fri, Aug 16, 2002 at 10:21:07AM -0500, Stephen Montgomery-Smith wrote:
> How do I do the following:
> 
> 1)  Find out how much time a program has currently consumed in computer 
> time (something like what the time command outputs - but I want the 
> program to do find this out about itself);
> 
> 2)  Have a thread wait for a specified amount of computer time (not 
> actual time so nanosleep won't work).
> 
> I looked at the man pages, but all I could find was runtime which seems 
> only to be accessible from the kernel.

-- 
Sergey Lyubka
Asita Technologies Int, Galway, Ireland

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message

Reply via email to