Re: how to implement ETA

2008-06-02 Thread William Squires
The following answer assumes you're dealing with a situation in which: 1) You already have a window where you can show the results as a non- modal window 2) The process has a fixed number of 'units' to process (such as records in a database, bytes to d/l, etc...) Here's my pseudo-code: // F

Re: how to implement ETA

2008-06-01 Thread Jens Alfke
On 1 Jun '08, at 5:50 AM, Nick Rogers wrote: I want to show time remaining while executing a loop. How to go about it? Basic algebra, mostly. Compute the elapsed time (current time minus time the loop started), divide by the number of iterations so far [that gives you the time per iterati

how to implement ETA

2008-06-01 Thread Nick Rogers
Hi, I want to show time remaining while executing a loop. How to go about it? WIshes, nick ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-