🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: es.comp.os.linux.programacion
Article #12744

Re: implementacion del comando interno time

#12744
From: J.A. Gutierrez
Date: Mon, 21 May 2001 10:13
26 lines
1758 bytes
Nacho Robledo <rrilNOSPAMpm@arrakis.es> wrote:

:      execlp("ls","ls",NULL);
: while (pid != wait(NULL));
: times(&tiempo2);

: Esto es todo lo que he cosegudio sacar... Ahora los tiempos no consigo
: convertirlos a segundos y muchos me dan 0 aunque cambie el ls por un cat de
: un fichero largo.

	convertirlos a segundos? no deberia haber problema:

     All times are reported in clock ticks.  The  specific  value
     for  a  clock tick is defined by the variable CLK_TCK, found
     in the header <limits.h>.

	Lo de que de casi cero es normal, un ls o un cat ocupan muy poca
	CPU



-- 
PGP and other useless info at      \
http://www.cps.unizar.es/~spd/      \
finger://daphne.cps.unizar.es/spd    \       Timeo Danaos et dona ferentes
ftp://ivo.cps.unizar.es/pub/          \                         (Virgilio)   
Technical Details
Message-ID: <9eapnf$6hm$1@news.unizar.es>
Path: arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!canoe.uoregon.edu!logbridge.uoregon.edu!news.rediris.es!news.unizar.es!not-for-mail
References: <3b07f785$1_3@news.arrakis.es>

Show Full Headers
Complete Article Headers
X-Google-Language: SPANISH,ASCII-7-bit
X-Google-Thread: f86c8,e7f8d4911dea7959
X-Google-Attributes: gidf86c8,public
X-Google-ArrivalTime: 2001-05-21 02:58:57 PST
Path: arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!canoe.uoregon.edu!logbridge.uoregon.edu!news.rediris.es!news.unizar.es!not-for-mail
From: "J.A. Gutierrez" <spd@daphne.cps.unizar.es>
Newsgroups: es.comp.os.linux.programacion
Subject: Re: implementacion del comando interno time
Date: 21 May 2001 10:13:03 GMT
Organization: Rank
Lines: 26
Message-ID: <9eapnf$6hm$1@news.unizar.es>
References: <3b07f785$1_3@news.arrakis.es>
NNTP-Posting-Host: daphne.cps.unizar.es
X-Trace: news.unizar.es 990439983 6710 155.210.152.20 (21 May 2001 10:13:03 GMT)
X-Complaints-To: usenet@news.unizar.es
NNTP-Posting-Date: 21 May 2001 10:13:03 GMT
User-Agent: tin/1.4.5-20010409 ("One More Nightmare") (UNIX) (IRIX/6.2 (IP22))