www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/01/16/17:58:12

From: alain AT qnx DOT com (Alain Magloire)
Newsgroups: comp.os.msdos.djgpp
Subject: Re: `void main' in Gnu packages---?!
Date: 16 Jan 2000 21:09:53 GMT
Organization: QNX Software Systems
Lines: 28
Message-ID: <85tc31$5i3$2@gateway.qnx.com>
References: <Pine DOT SUN DOT 3 DOT 91 DOT 1000116105055 DOT 11666Z-100000 AT is>
NNTP-Posting-Host: qnx.com
X-Trace: gateway.qnx.com 948056993 5699 209.226.137.1 (16 Jan 2000 21:09:53 GMT)
X-Complaints-To: usenet AT qnx DOT com
NNTP-Posting-Date: 16 Jan 2000 21:09:53 GMT
X-Newsreader: TIN [version 1.2 PL2]
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

Eli Zaretskii (eliz AT is DOT elta DOT co DOT il) wrote:

: On 14 Jan 2000, Alain Magloire wrote:

: > Does DJGPP support getrusage () ?

: It does, but the support is mostly a no-op: the only field of struct
: rusage that gets meaningful results is ru_utime, and measuring time
: for child programs is not supported.

: Contributions are welcome ;-).

[laughs] 8-), good try.

but for GNU time, it should be trivial(tm) to replace the fork ()
by spawn ().  Since all what the code do is

gettimeofday (); fork (); waitpid (); getimeofday (); print_statistics();

so :
gettimeofday (); spawn (); getimeofday (); print_statistics();

And no I did not volounteer ;-)

--
au revoir, alain
----
Aussi haut que l'on soit assis, on est toujours assis que sur son cul !!!

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019