Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 202
  • Last Modified:

I have a problem of calculation of approximate time

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
ProgsX
Asked:
ProgsX
1 Solution
 
2266180Commented:
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
 
Pierre CorneliusCommented:
I don't understand what you are asking. Please elaborate on your question
0
 
Wim ten BrinkCommented:
Sorry if I have to agree with PierreC and also respond with: DUH???
0
Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

 
2266180Commented:
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
 
Pierre CorneliusCommented:
I feel the question was not asked properly and was abandoned. Exactly what ProgsX was asking is unclear, hence my previous comment.
0
 
modus_operandiCommented:
Forced accept.

modus_operandi
EE Moderator
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now