From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (qmail 9184 invoked from network); 26 Mar 1999 12:54:07 -0000 Received: from mail.redhat.com (199.183.24.239) by lists.redhat.com with SMTP; 26 Mar 1999 12:54:07 -0000 Received: from voicenet.com (mail11.voicenet.com [207.103.0.37]) by mail.redhat.com (8.8.7/8.8.7) with SMTP id HAA12015 for ; Fri, 26 Mar 1999 07:39:58 -0500 Received: (qmail 1024 invoked from network); 26 Mar 1999 12:39:56 -0000 Received: from rotary0347-pri.voicenet.com (HELO voicenet.com) (209.71.51.47) by mail11.voicenet.com with SMTP; 26 Mar 1999 12:39:56 -0000 Sender: gat@mail.redhat.com Message-ID: <36FB0E89.43393844@voicenet.com> Date: Thu, 25 Mar 1999 23:35:22 -0500 From: Uncle George Organization: Big-Endian X-Mailer: Mozilla 4.07 [en] (X11; I; Linux 2.0.36 i686) MIME-Version: 1.0 To: axp-list@redhat.com Subject: getrusage: precision as good as a jiffie? Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Well from just looking at the tv.sec&tv.usec return values one gets the idea that CPU usage is going to be fairly precise ( somewhere in the microsecond level) The actual usage seems to loop off 3 digits of precision. Reading the kernel code, one see's that the precision is based on clock ticks/jiffies intervals. There appears to be no better way of getting precision accounting, as it appears that all other sys functions are rooted in the clock tick, rather that something with a betther precision ( ie # instructions executed, a real-time clock.) I suppose if u give up ur tick, u still get charged for it - but only in whole tic units gat