Solved

I have a problem of calculation of approximate time

Posted on 2006-11-24
7
195 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
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
Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

 
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

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

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…
Introduction I have seen many questions in this Delphi topic area where queries in threads are needed or suggested. I know bumped into a similar need. This article will address some of the concepts when dealing with a multithreaded delphi database…
This Micro Tutorial will teach you how to censor certain areas of your screen. The example in this video will show a little boy's face being blurred. This will be demonstrated using Adobe Premiere Pro CS6.
In a recent question (https://www.experts-exchange.com/questions/28997919/Pagination-in-Adobe-Acrobat.html) here at Experts Exchange, a member asked how to add page numbers to a PDF file using Adobe Acrobat XI Pro. This short video Micro Tutorial sh…

813 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now