From: Philip Rhoades Date: 2005-12-09T00:14:05+09:00 Subject: Re: Retrieving PID running time On Fri, 2005-12-09 at 00:03 +0900, Joe Van Dyk wrote: > On 12/8/05, Philip Rhoades wrote: > > People, > > > > I have found how to get PIDs etc but how can I find the running time of > > a particular PID without messing around with a system call to ps etc > > That information should be in /proc//stat. Look at the man page > for proc for more details. Yes, but what I want (in Ruby) is something like: ptime = Process.pid.time How can I do that? Thanks, Phil. -- Philip Rhoades Pricom Pty Limited (ACN 003 252 275 ABN 91 003 252 275) GPO Box 3411 Sydney NSW 2001 Australia Mobile: +61:(0)411-185-652 Fax: +61:(0)2-8221-9599 E-mail: phil@pricom.com.au