From owner-freebsd-hackers Fri Aug 16 9: 5:23 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 715E137B400 for ; Fri, 16 Aug 2002 09:05:21 -0700 (PDT) Received: from mail2.qc.uunet.ca (mail2.qc.uunet.ca [198.168.54.17]) by mx1.FreeBSD.org (Postfix) with ESMTP id AD71B43E6A for ; Fri, 16 Aug 2002 09:05:20 -0700 (PDT) (envelope-from anarcat@anarcat.ath.cx) Received: from xtanbul (IDENT:506@[216.94.147.34]) by mail2.qc.uunet.ca (8.9.3/8.9.3) with ESMTP id MAA12577 for ; Fri, 16 Aug 2002 12:05:12 -0400 Date: Fri, 16 Aug 2002 11:54:55 -0400 Subject: Re: runtime Content-Type: text/plain; charset=US-ASCII; format=flowed Mime-Version: 1.0 (Apple Message framework v482) From: Antoine Beaupre To: freebsd-hackers@freebsd.org Content-Transfer-Encoding: 7bit In-Reply-To: <3D5D1863.2050209@math.missouri.edu> Message-Id: <8250B2F2-B130-11D6-8D53-0050E4A0BB3F@anarcat.ath.cx> X-Mailer: Apple Mail (2.482) Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG man clocks holds all the answers. On Friday, August 16, 2002, at 11:21 AM, 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 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message