Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Visual Basic
  4. Process Time

Process Time

Scheduled Pinned Locked Moved Visual Basic
question
9 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • V Offline
    V Offline
    V 2
    wrote on last edited by
    #1

    Hi, I m using progressbar in my project to show how much process has completed but i wanna know how can i calculate the time which will consume in the process completion?? Hope u r getting wht i mean Thanks

    The Great Pleasure In Doing That Things That Other People Say U Can't By Doing This U Can Shut Their Mouth

    A 1 Reply Last reply
    0
    • V V 2

      Hi, I m using progressbar in my project to show how much process has completed but i wanna know how can i calculate the time which will consume in the process completion?? Hope u r getting wht i mean Thanks

      The Great Pleasure In Doing That Things That Other People Say U Can't By Doing This U Can Shut Their Mouth

      A Offline
      A Offline
      Ashfield
      wrote on last edited by
      #2

      ~V~ wrote:

      how can i calculate the time which will consume in the process completion??

      Depends on what you're doing. When I'm making a cup of coffee about 5 minutes (its a slow kettle)

      Bob Ashfield Consultants Ltd

      V 1 Reply Last reply
      0
      • A Ashfield

        ~V~ wrote:

        how can i calculate the time which will consume in the process completion??

        Depends on what you're doing. When I'm making a cup of coffee about 5 minutes (its a slow kettle)

        Bob Ashfield Consultants Ltd

        V Offline
        V Offline
        V 2
        wrote on last edited by
        #3

        Actually i m using process in For loop

        The Great Pleasure In Doing That Things That Other People Say U Can't By Doing This U Can Shut Their Mouth

        M 1 Reply Last reply
        0
        • V V 2

          Actually i m using process in For loop

          The Great Pleasure In Doing That Things That Other People Say U Can't By Doing This U Can Shut Their Mouth

          M Offline
          M Offline
          Mycroft Holmes
          wrote on last edited by
          #4

          Unless you know the depth of the for loop you cannot know the progress to completion. This why M$ has moved from the ever repeating progress bar that either repeats or sticks on 99% to the circular animated graphic.

          Never underestimate the power of human stupidity RAH

          V 1 Reply Last reply
          0
          • M Mycroft Holmes

            Unless you know the depth of the for loop you cannot know the progress to completion. This why M$ has moved from the ever repeating progress bar that either repeats or sticks on 99% to the circular animated graphic.

            Never underestimate the power of human stupidity RAH

            V Offline
            V Offline
            V 2
            wrote on last edited by
            #5

            Thanks 4 reply I m retriving data in dataset n after modifing it save back to new table in this process i m using for loop n i wanna know how much time it will consume??

            The Great Pleasure In Doing That Things That Other People Say U Can't By Doing This U Can Shut Their Mouth

            M 1 Reply Last reply
            0
            • V V 2

              Thanks 4 reply I m retriving data in dataset n after modifing it save back to new table in this process i m using for loop n i wanna know how much time it will consume??

              The Great Pleasure In Doing That Things That Other People Say U Can't By Doing This U Can Shut Their Mouth

              M Offline
              M Offline
              Mycroft Holmes
              wrote on last edited by
              #6

              ~V~ wrote:

              how much time it will consume

              Why - you can use the table.rows to set the max of the progressbar and increment by 1 each record that is processed. As for time estimates there are way too many factors you will need to know to do the estimate. However a little thinking may lead you to something like this: Guest the first number based on row count and estimated time of processing (you have already tested this during development) check the duration of the first loop multiply duration by rowcount refine the estimate with each record processed till completed. Waste of effort in my opinion but hey it's your time.

              Never underestimate the power of human stupidity RAH

              V 1 Reply Last reply
              0
              • M Mycroft Holmes

                ~V~ wrote:

                how much time it will consume

                Why - you can use the table.rows to set the max of the progressbar and increment by 1 each record that is processed. As for time estimates there are way too many factors you will need to know to do the estimate. However a little thinking may lead you to something like this: Guest the first number based on row count and estimated time of processing (you have already tested this during development) check the duration of the first loop multiply duration by rowcount refine the estimate with each record processed till completed. Waste of effort in my opinion but hey it's your time.

                Never underestimate the power of human stupidity RAH

                V Offline
                V Offline
                V 2
                wrote on last edited by
                #7

                Thanks a lot, its not time wasting its reqrirement of my project

                The Great Pleasure In Doing That Things That Other People Say U Can't By Doing This U Can Shut Their Mouth

                A 1 Reply Last reply
                0
                • V V 2

                  Thanks a lot, its not time wasting its reqrirement of my project

                  The Great Pleasure In Doing That Things That Other People Say U Can't By Doing This U Can Shut Their Mouth

                  A Offline
                  A Offline
                  Ashfield
                  wrote on last edited by
                  #8

                  Well, if a simple count as Mycroft suggests isn't good enough you are going to have a problem - different processors, memory etc etc. You could time the 1st iteration and use that combined with the number of records to give a rough approximation I expect.

                  Bob Ashfield Consultants Ltd

                  V 1 Reply Last reply
                  0
                  • A Ashfield

                    Well, if a simple count as Mycroft suggests isn't good enough you are going to have a problem - different processors, memory etc etc. You could time the 1st iteration and use that combined with the number of records to give a rough approximation I expect.

                    Bob Ashfield Consultants Ltd

                    V Offline
                    V Offline
                    V 2
                    wrote on last edited by
                    #9

                    Thanks to all who replied my question n thier suggestions :)

                    The Great Pleasure In Doing That Things That Other People Say U Can't By Doing This U Can Shut Their Mouth

                    1 Reply Last reply
                    0
                    Reply
                    • Reply as topic
                    Log in to reply
                    • Oldest to Newest
                    • Newest to Oldest
                    • Most Votes


                    • Login

                    • Don't have an account? Register

                    • Login or register to search.
                    • First post
                      Last post
                    0
                    • Categories
                    • Recent
                    • Tags
                    • Popular
                    • World
                    • Users
                    • Groups