Solved

I have a problem of calculation of approximate time

Posted on 2006-11-24
7
198 Views
Last Modified: 2010-04-05
example:

MaxCount :is the total quantity

UseCount :is the add quantity in listview

(MaxCount- UseCount)/24/60/60/1000

time proceeds too quickly.

help me
0
Comment
Question by:ProgsX
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
7 Comments
 
LVL 28

Expert Comment

by:2266180
ID: 18008208
well, for that is done by measuring the amount processed in the time processed and then calculating the time for the amount needing to be processed

something like:

processedTime: is the time it took from the start of processing until now in ms (or seconds)
processedQuantity: is the total quantity processed.

the above 2 variables are incremented by a timer or a thread or whatever. at any give time those are known.

MaxCount-processedQuantity: is the amount of quantity still need to be processed. (obviously :) )

then the time that remains in ms (or seconds) is:
(MaxCount-processedQuantity)/processedQuantity*processedTime;

you will have to adapt this to your specific applicaiton. or provide code for us to fix.
0
 
LVL 14

Expert Comment

by:Pierre Cornelius
ID: 18008558
I don't understand what you are asking. Please elaborate on your question
0
 
LVL 17

Expert Comment

by:Wim ten Brink
ID: 18076398
Sorry if I have to agree with PierreC and also respond with: DUH???
0
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 28

Accepted Solution

by:
2266180 earned 250 total points
ID: 20484762
I disagree :)
I have explained in detail how the operation of calculating remaining time is done and also gave the formula. all the asker needed to do si adapt it to his/her application (variable names and calling place) OR request assistance.
so I did answer the question and hence deserve an "accepted answer" :)

just because the asker didn't have time or didn't understand the simple math behind my explanation and did not want to ask us or whatever, is not a reason to delete a question.
0
 
LVL 14

Expert Comment

by:Pierre Cornelius
ID: 20488564
I feel the question was not asked properly and was abandoned. Exactly what ProgsX was asking is unclear, hence my previous comment.
0
 
LVL 1

Expert Comment

by:modus_operandi
ID: 20512966
Forced accept.

modus_operandi
EE Moderator
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Introduction The parallel port is a very commonly known port, it was widely used to connect a printer to the PC, if you look at the back of your computer, for those who don't have newer computers, there will be a port with 25 pins and a small print…
Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial

752 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question