❔ Calculating estimated time is inaccurate
Hello,
I try to calculate the remaining time. The problem is that the estimated remaining time is pretty inaccurate. The class says that each job takes around 7 seconds, but it is around ~1 second.
What might the problem here? Is it because I do use seconds over milliseconds?
5 Replies
First off, use Stopwatch for things like timeTaken
Instead of DateTime subtraction
And yes I wouldn't use seconds, that's not very granular
Thanks. I will change that.
The new class works great but the code smells imo. Any suggestions for improvement?
Does this fulfill your needs?
That seems like a convoluted way to use Stopwatchk, what's the advantage of doing that instead of just using the Elapsed property?
Was this issue resolved? If so, run
/close
- otherwise I will mark this as stale and this post will be archived until there is new activity.