Incremental Progress Report object/closure?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Terrence Brannon

    #1

    Incremental Progress Report object/closure?

    'lo all, I'm looking for something that gives feedback to the screen
    every X iterations, reporting

    Time elapsed: 0:00:00 X,XXX,XXX records done. speed XXXX/second.
    [Action Label]


    Such a thingy is useful when one is cranking away at million record
    flat files and one wants to provide feedback to the user lest he bash
    away at the interrupt key in fear of his machine being locked up.

    All the best mates,
    -- meta

  • George Sakkis

    #2
    Re: Incremental Progress Report object/closure?

    Terrence Brannon wrote:
    'lo all, I'm looking for something that gives feedback to the screen
    every X iterations, reporting
    >
    Time elapsed: 0:00:00 X,XXX,XXX records done. speed XXXX/second.
    [Action Label]
    >
    >
    Such a thingy is useful when one is cranking away at million record
    flat files and one wants to provide feedback to the user lest he bash
    away at the interrupt key in fear of his machine being locked up.
    >
    All the best mates,
    -- meta
    Check out if any of the progress bar recipes in the Cookbook can be
    tweaked to fit the bill:


    HTH,
    George

    Comment

    • Gabriel Genellina

      #3
      Re: Incremental Progress Report object/closure?

      At Friday 1/9/2006 15:07, Terrence Brannon wrote:
      >'lo all, I'm looking for something that gives feedback to the screen
      >every X iterations, reporting
      >
      >Time elapsed: 0:00:00 X,XXX,XXX records done. speed XXXX/second.
      >[Action Label]
      What about a simple:

      print "Time elapsed: blah blah blah\r" % whatever,

      (notice the \r and the final , )



      Gabriel Genellina
      Softlab SRL





      _______________ _______________ _______________ _____
      Preguntá. Respondé. Descubrí.
      Todo lo que querías saber, y lo que ni imaginabas,
      está en Yahoo! Respuestas (Beta).
      ¡Probalo ya!


      Comment

      • Fredrik Lundh

        #4
        Re: Incremental Progress Report object/closure?

        Gabriel Genellina wrote:
        What about a simple:
        >
        print "Time elapsed: blah blah blah\r" % whatever,
        >
        (notice the \r and the final , )
        to avoid messing up the output when you're leaving the loop, or if
        something goes wrong inside the loop, it's usually better to *start*
        with a carriage return:

        print "\rTime elapsed: blah blah blah" % whatever,

        </F>

        Comment

        Working...