Article View: es.comp.os.linux.programacion
Article #17366Re: Tiempo de CPU de un proceso
From: Ignacio Arenaza
Date: Tue, 11 Jan 2000 00:00
Date: Tue, 11 Jan 2000 00:00
30 lines
1654 bytes
1654 bytes
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
>>>>> "QTQ" == QTQ <g160234002x@abonados.cplus.es> writes:
QTQ> Hola muy buenas... Necesito estudiar el comportamiento en
QTQ> cuanto a coste temporal de unos algoritmos, por lo que me
QTQ> conviene utilizar una llamada a sistema que me devuelva el
QTQ> tiempo de CPU utilizado por el programa que lo
QTQ> llame. Recuerdo haber utilizado (en UNIX) una llamada que me
QTQ> devolv�a un registro con el tiempo de usuario, el de sistema,
QTQ> el idle y no s� qu� m�s... Pero tristemente el dicho "el que
QTQ> tuvo retuvo" no parece aplicable a mi caso.
Echa una ojeada a getrusage(2) y a wait4(2)...
Saludos. I�aki.
- --
Get PGP/GPG Keys at http://personales.jet.es/inaki.arenaza/pgpkey.html
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.0 (GNU/Linux)
Comment: Processed by Mailcrypt 3.5.4 and Gnu Privacy Guard
iD8DBQE4em1MZXLnGT1HLgcRAqNsAKCdADDqyEEuXNRu6YK+LPKRxFNaVgCdHvLQ
bE07kviz4d6QPSWWVoeNMqA=
=0z+u
-----END PGP SIGNATURE-----
Technical Details
Message-ID:
<87hfglts4y.fsf@eb2ebu.ampr.org>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<85c8ip$de3$1@diana.bcn.ttd.net>Show Full Headers
Complete Article Headers
X-Google-Language: SPANISH,ASCII X-Google-Thread: f86c8,212466eafdf88da1 X-Google-Attributes: gidf86c8,public From: Ignacio Arenaza <inaki.arenaza@jet.es> Subject: Re: Tiempo de CPU de un proceso Date: 2000/01/11 Message-ID: <87hfglts4y.fsf@eb2ebu.ampr.org> X-Deja-AN: 571401511 Content-Transfer-Encoding: 8bit References: <85c8ip$de3$1@diana.bcn.ttd.net> Organization: Servidor NNTP de eb2ebu.ampr.org Content-Type: text/plain; charset=iso-8859-1 User-Agent: Gnus/5.070096 (Pterodactyl Gnus v0.96) Emacs/20.3 Mime-Version: 1.0 Newsgroups: es.comp.os.linux.programacion