Assuming that you're using wget version 1.10.2 (or similar), it
appears (src/ptimer.c) that the program already uses a time resolution
of a millisecond (or better), given underlying run-time library support
at that resolution.  The formatted output (retr_rate(): src/retr.c) is
limited to a form which is more convenient for most users.

   If you want the results to have any meaning, you should examine the
wget code to see exactly what is being timed (at which events the timer
starts and stops), to see if wget is measuring what you want measured. 
A term like "response time" is pretty vague all by itself.

   It should be easy enough to modify the formatted output code to
provide more digits than the existing code does.  (Whether these would
be _significant_ figures would depend on the underlying OS timer
resolution.)  I don't see how you could get this sort of output without
changing the code, so you'd need to decide whether you wanted to add a
command-line option (or to use some other method) to enable the new
elapsed time format, or if you just wanted to maintain a separate code
stream for a modified wget program which always uses the new format.

   Getting changes like this into the main product code stream is
someone else's decision.  If I were you, I'd expect to have to make the
changes and maintain the different code myself into the indefinite
future.

------------------------------------------------------------------------

   Steven M. Schweda               [EMAIL PROTECTED]
   382 South Warwick Street        (+1) 651-699-9818
   Saint Paul  MN  55105-2547

Reply via email to