Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
* getrusage: precision as good as a jiffie?
@ 1999-03-26  4:35 Uncle George
  0 siblings, 0 replies; only message in thread
From: Uncle George @ 1999-03-26  4:35 UTC (permalink / raw)
  To: axp-list

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


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~1999-03-26 12:54 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1999-03-26  4:35 getrusage: precision as good as a jiffie? Uncle George

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox