Re: better resolution for getrusage()?

Matthias Urlichs (smurf@smurf.noris.de)
Thu, 29 Feb 1996 06:17:28 +0100


In linux.dev.kernel, article <199602272122.VAA04591@nene.boundless.com>=
,
Ben Wing <wing@666.com> writes:
> It would sure be nice if getrusage() had microsecond resolution like
> gettimeofday() did. How hard would this be to add?
>=20
Somewhere between difficult and impossible. The sampling frequency is H=
Z.
If you want more accuracy, you'll have to ask the clock chip for the
current time before and after _every_ system call.

Somehow I doubt that this exercise would speed up your system...

--=20
Guns don't die. People do.
-- Solomon Short
--=20
Matthias Urlichs \ XLink-POP N=FCrnberg | EMail: urlichs@smurf.=
noris.de
Schleiermacherstra=DFe 12 \ Unix+Linux+Mac | Phone: ...please use =
email.
90491 N=FCrnberg (Germany) \ Consulting+Networking+Programming+etc'i=
ng 42
PGP: 1B 89 E2 1C 43 EA 80 44 15 D2 29 CF C6 C7 E0 DE=20
Click <A HREF=3D"http://smurf.noris.de/~smurf/finger">here</A>.