Mail Archives: djgpp/2000/01/16/17:58:12
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 -