Re: duration of iterations of a for-loop



On Friday 21 December 2007 03:49, guba@xxxxxxxxxx wrote:

Hello,

Hello,

I want to determine the duration of the single iterations of
a for-loop i.e. after each iteration the duration should
be printed out. Is there a function for this implemented or
must this be done with the difference of two times
derived from localtime? Thank you very much!

perldoc Time::HiRes


John
--
use Perl;
program
fulfillment
.



Relevant Pages

  • Re: size of output argument of ode45 are different
    ... The best way to avoid this is to change your tSpan input ... Every time you call this in your for-loop, the output z and E will ... over every iteration of the for-loop, ... ode45 the d and k parameters. ...
    (comp.soft-sys.matlab)
  • Re: increasing counter whithin loop?
    ... is not intuitive ) that the counter in the for-loop can't be ... > 90% of the time you don't need counters or while loops, ... there's nothing preventing you from doing e.g.: ... > # set skip to true to skip the next iteration ...
    (comp.lang.ruby)
  • Re: __init__ method and raising exceptions
    ... Vikram wrote: boolean value from __init__to check for errors within the for-loop. ... How would I be able to stop the current iteration and continue with the next after reporting an error? ...
    (comp.lang.python)
  • Re: duration of iterations of a for-loop
    ... a for-loop i.e. after each iteration the duration should ... Would mere one second resolution be ... Do you intend to include the I/O overhead of printing ...
    (perl.beginners)
  • __init__ method and raising exceptions
    ... If there is a problem with this iteration, ... want to abort the loop, but equivalently 'continue' on in the for-loop. ...
    (comp.lang.python)