Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 16 Aug 2002 10:31:08 -0500
From:      Stephen Montgomery-Smith <stephen@math.missouri.edu>
To:        freebsd-hackers@FreeBSD.ORG
Subject:   Re: runtime
Message-ID:  <3D5D1ABC.4080102@math.missouri.edu>
References:  <3D5D1863.2050209@math.missouri.edu> <20020816163125.GB12216@yoda.asitatech.ie>

next in thread | previous in thread | raw e-mail | index | archive | help
It looks like exactly what I want.

Thanks.

Sergey Lyubka wrote:
> 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.
> 
> 



-- 
Stephen Montgomery-Smith
stephen@math.missouri.edu
http://www.math.missouri.edu/~stephen


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3D5D1ABC.4080102>