Solved

I have a problem of calculation of approximate time

Posted on 2006-11-24
7
191 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:ciuly
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
Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

 
LVL 28

Accepted Solution

by:
ciuly 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

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Delphi XE7 Rest Client 2 175
Wininet read php file from internet issue 6 70
Delphi XE10, MySQL Query 4 108
Base1 Encode/Decode 3 30
Objective: - This article will help user in how to convert their numeric value become words. How to use 1. You can copy this code in your Unit as function 2. than you can perform your function by type this code The Code   (CODE) The Im…
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…
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

706 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

17 Experts available now in Live!

Get 1:1 Help Now