Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: d31c97e6a05eaa42e9c192950c9826a7db4f1292
Ticket: 625454ffffffffffffffffffffffffffffffffff
new arg to 'time' - iterations in secs
User & Date: davidw on 2002-10-18 23:13:25
Changes

  1. assignee changed to: "dkf"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    [ I hate the brevity of the summary field ]
    
    Hi,
    
    While running some testing code that I wanted to time,
    it came up as a requirement that users want to run it
    not by number of iterations, but by a certain length of
    time.
    
    The idea occurred to me that [time] could take an
    additional argument - a qualifier stating that
    iterations is a number of seconds (I suppose you could
    also use 'minutes' or 'hours' for the additional arg if
    you wanted).
    
    The loop would then run for at least, but not
    precisely, that amount of time, and return the amount
    of microseconds per iteration.
    
    It would also be possible to script the whole thing, of
    course.  Maybe that's a better course of action?  The
    nice thing about time is that the loop overhead is
    minimal.  Having it coded in C would mean that the
    results would be comparable to regular [time] results.
    
  4. foundin changed to: "None"
  5. priority changed to: "5 Medium"
  6. resolution changed to: "None"
  7. status changed to: "Open"
  8. submitter changed to: "davidw"
  9. subsystem changed to: "18. Commands M-Z"
  10. title changed to: "new arg to 'time' - iterations in secs"
  11. type changed to: "RFE"