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
ProgsXAsked:
Who is Participating?
 
2266180Connect With a Mentor Commented:
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
 
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
Upgrade your Question Security!

Your question, your audience. Choose who sees your identity—and your question—with question security.

 
Wim ten BrinkSelf-employed developerCommented:
Sorry if I have to agree with PierreC and also respond with: DUH???
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
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.